Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public ActionResult DoctorDistributePackage()
        {
            var model = new DistributingViewModel();

            return(View(model));
        }