public ActionResult OralConsultationOrganizationDelete([DataSourceRequest] DataSourceRequest request, OralConsultationOrganizationItem oralConsultationOrganizationItem) { if (oralConsultationOrganizationItem != null) { oralConsultationOrganizationItem = service.DeleteOrganization(oralConsultationOrganizationItem); } return(Json(new[] { oralConsultationOrganizationItem }.ToDataSourceResult(request, ModelState))); }
public ActionResult OralConsultationOrganizationCreate([DataSourceRequest] DataSourceRequest request, OralConsultationOrganizationItem oralConsultationOrganizationItem, string prmGUID) { if (oralConsultationOrganizationItem != null && ModelState.IsValid) { oralConsultationOrganizationItem.GUID = new Guid(prmGUID); oralConsultationOrganizationItem = service.InsertOrganization(oralConsultationOrganizationItem); } return(Json(new[] { oralConsultationOrganizationItem }.ToDataSourceResult(request, ModelState))); }