public JsonResult delete(int MainCategoryID) { return(Json(db.deletemain(MainCategoryID), JsonRequestBehavior.AllowGet)); }