コード例 #1
0
 public ActionResult NewDrug(DrugNewViewModel model)
 {
     if (ModelState.IsValid)
         if (model.Add(provider))
         {
             DiagnosisDrugsViewModel listModel = new DiagnosisDrugsViewModel(model.DiagnosisId, provider);
             return PartialView("DrugsListPartial", listModel);
         }
     return PartialView(model);
 }
コード例 #2
0
 public ActionResult NewDrugPartial(int id)
 {
     DrugNewViewModel model = new DrugNewViewModel(provider, id);
     return PartialView(model);
 }