public ActionResult db_Update([DataSourceRequest] DataSourceRequest request, LegalSessionViewModel db) { if (db != null && ModelState.IsValid) { LegalSessionService.Update(db); } return(Json(new[] { db }.ToDataSourceResult(request, ModelState))); }
public ActionResult db_Destroy([DataSourceRequest] DataSourceRequest request, LegalSessionViewModel db) { if (db != null) { LegalSessionService.Destroy(db); } return(Json(new[] { db }.ToDataSourceResult(request, ModelState))); }