I need to control how ajax parameters are sent to my controller as parameters. I can do this in javascript using the dialect api...but I can't find how to do this with the MVC wrappers.
Any suggestions? I have:
I want to call the method:
Any suggestions? I have:
@model CabIt.Web.ViewModels.AddressViewModel
@(Html.Kendo().AutoCompleteFor(a => a).Name("fromAddress").DataTextField("Name")
.DataSource(source => source.Read(read => read.Action("/", "Api/Addresses"))
.ServerFiltering(true)))
I want to call the method:
public class AddressesController : ApiController
{
public IEnumerable<
AddressViewModel
> Get(string id)
{
return AddressViewModel[0];
}
}