public ActionResult DoctorDistributePackage(string barcode) { var model = new DistributingViewModel(); try { MedicationPackageBLL.DistributePackage(barcode); model.Result = new Notification { Level = NotificationLevel.Info, Message = "Distribute package succeeded" }; } catch (ENETCareException ex) { model.Result = new Notification { Level = NotificationLevel.Error, Message = ex.Message }; } ModelState.Clear(); return(View(model)); }
public ActionResult DoctorDistributePackage() { var model = new DistributingViewModel(); return(View(model)); }