Hi all,
I'm new to Web API,
and i want to call Web API controller action from MVC Controller..
How can i do this.
i have a method like this...
namespace MyApp.Web.Controllers
{
public class MyAppController : ApiController
{
[HttpPost]
[ActionName("Search")]
public string mysearch(string value)
{
if (value != null)
{
return "Search results found..";
}
return "No search available..";
}
}
}
How can i call this method from MVC controller????
Please help me
Thanks in Advance......
...
Go to the complete details ...