예제 #1
0
 public ActionResult OralConsultationRightDelete([DataSourceRequest] DataSourceRequest request, OralConsultationRightItem oralConsultationRightItem)
 {
     if (oralConsultationRightItem != null)
     {
         oralConsultationRightItem = service.DeleteRight(oralConsultationRightItem);
     }
     return(Json(new[] { oralConsultationRightItem }.ToDataSourceResult(request, ModelState)));
 }
예제 #2
0
 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)));
 }