One of my methods need to return just a simple string of text. What should be the return type of the method? Do I still declare it in a subclass of ApiController
?
I tried the following but it does not work:
public class TestController : ApiController
{
public string Announcements()
{
return "Testing abc";
}
}