I am trying to create a page with grid format and I used kendo controller also installed kendo in my system but its showing me this error. I have used code first entity framework for the code.
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult companys_Create([DataSourceRequest]DataSourceRequest request, company company)
{
if (ModelState.IsValid)
{
var entity = new company
{
companyname = company.companyname
};
db.companys.Add(entity);
db.SaveChanges();
company.companyid = entity.companyid;
}
return Json(new[] { company }.ToDataSourceResult(request, ModelState));
}
I am getting error at httpverbs. Can anyone give a solution.