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); }
public ActionResult NewDrugPartial(int id) { DrugNewViewModel model = new DrugNewViewModel(provider, id); return PartialView(model); }