Ejemplo n.º 1
0
 public ActionResult OralConsultationOrganizationDelete([DataSourceRequest] DataSourceRequest request, OralConsultationOrganizationItem oralConsultationOrganizationItem)
 {
     if (oralConsultationOrganizationItem != null)
     {
         oralConsultationOrganizationItem = service.DeleteOrganization(oralConsultationOrganizationItem);
     }
     return(Json(new[] { oralConsultationOrganizationItem }.ToDataSourceResult(request, ModelState)));
 }
Ejemplo n.º 2
0
 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)));
 }