public ActionResult db_Create([DataSourceRequest] DataSourceRequest request, AdvocacyactivitiesViewModel db) { if (db != null && ModelState.IsValid) { AdvocacyactivitiesService.Create(db); } return(Json(new[] { db }.ToDataSourceResult(request, ModelState))); }
public ActionResult db_Destroy([DataSourceRequest] DataSourceRequest request, AdvocacyactivitiesViewModel db) { if (db != null) { AdvocacyactivitiesService.Destroy(db); } return(Json(new[] { db }.ToDataSourceResult(request, ModelState))); }