public JsonResult Delete(int id) { ResponeModel response = new ResponeModel(true); Context.SalesOrder dbItem = RepoSalesOrder.FindByPK(id); RepoSalesOrder.delete(dbItem, UserPrincipal.id); return(Json(response)); }