コード例 #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)));
 }