So I have this code and it should return the list of items but I can't get it to work. I know there is a mismatch between HttpResponseMessage and List<string> but I am not able to convert it to return.
I know that it's because of the HttpResponseMessage type and list don't match but I don't know how to convert it
namespace NovaWebApi.Controllers
{
public class TermsController : WebApiBase
{
[HttpGet]
public HttpResponseMessage GetTermsUrl()
{
List<string> terms = new List<string>();
terms.Add("https://www.nbg.gov.ge/index.php?m=2");
terms.Add("https://www.fms.gov.ge/");
return terms;
}
}
}
