public ActionResult OralConsultationRightDelete([DataSourceRequest] DataSourceRequest request, OralConsultationRightItem oralConsultationRightItem) { if (oralConsultationRightItem != null) { oralConsultationRightItem = service.DeleteRight(oralConsultationRightItem); } return(Json(new[] { oralConsultationRightItem }.ToDataSourceResult(request, ModelState))); }
public ActionResult OralConsultationRightCreate([DataSourceRequest] DataSourceRequest request, OralConsultationRightItem oralConsultationRightItem, string prmGUID) { if (oralConsultationRightItem != null && ModelState.IsValid) { oralConsultationRightItem.GUID = new Guid(prmGUID); oralConsultationRightItem = service.InsertRight(oralConsultationRightItem); } return(Json(new[] { oralConsultationRightItem }.ToDataSourceResult(request, ModelState))); }