I have an ASP.Net Core MVC web application. I have a view that calls a controller in a project on a different server. In this view I have a form with a post that calls the api.
<form action="http://myapi/values/postdata" method="POST" enctype="mulitpart/form-data">
<div class="content wysiwyg-content">I want to set a global variable in something like a .config file to set the api location and use it for the form action.
<form action=myapilocation method="POST" enctype="mulitpart/form-da
The idea is to be able to update the config file with the location if it changes and not have to change code in the view, or views when the same api is called from different views. ASP.Net web applications have a web.config file, but I ASP.Net core mvc apps
do not seem to have them. How would I set a variable like this and then call it on my view/form? The location of the url will change, and once deployed I want to just change a config setting. Thanks.</div>