public ActionResult DonorGivings_Update([DataSourceRequest] DataSourceRequest request, DonorGivingModel donorGiving) { if (donorGiving != null && ModelState.IsValid) { donorGivingService.Update(donorGiving); } return(Json(new[] { donorGiving }.ToDataSourceResult(request, ModelState))); }
public ActionResult DonorGivings_Delete([DataSourceRequest] DataSourceRequest request, DonorGivingModel donorGiving) { if (donorGiving != null) { donorGivingService.Destroy(donorGiving); } return(Json(new[] { donorGiving }.ToDataSourceResult(request, ModelState))); }
public ActionResult DonorGivings_Create(int parentID, [DataSourceRequest] DataSourceRequest request, DonorGivingModel donorGiving) { if (donorGiving != null) { donorGiving.DonorID = parentID; donorGivingService.Create(donorGiving); } return(Json(new[] { donorGiving }.ToDataSourceResult(request, ModelState))); }