I went through many posts but none exactly targeted a Web API Controller in the MVC Framework so I had to write a post regarding this.
I am using C# and my controller action looks something like this:
//[HttpGet]/[HttpPost]/etc.. anything can be here
public IEnumerable<something> Customers()
{
//Code
return List;
}
And my script in my cshtml view file looks something like below:
@section scripts
{
<script type="text/javascript">
</script>
}
Now if I want to call a jquery function and/or pass some data to it as well on the client side from my C# code, what would my action and jquery code look like?