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