public ActionResult Project_Destroy([DataSourceRequest] DataSourceRequest request, projectViewModle db) { if (db != null) { ProjectServices.Destroy(db); } return(Json(new[] { db }.ToDataSourceResult(request, ModelState))); }
public ActionResult Project_Update([DataSourceRequest] DataSourceRequest request, projectViewModle db) { if (db != null && ModelState.IsValid) { ProjectServices.Update(db); } return(Json(new[] { db }.ToDataSourceResult(request, ModelState))); }