Return String as ActionResult in ASP.Net MVC
You can simply just use the ContentResult to return a plain text string:
public ActionResult Temp() {
return Content("Hi there!");
}
You can simply just use the ContentResult to return a plain text string:
public ActionResult Temp() {
return Content("Hi there!");
}