private void GenerateOrderSubOrders(CompanyOrder order, string[] subOrderIds)
        {
            foreach (var subOrderId in subOrderIds)
            {
                if (string.IsNullOrEmpty(subOrderId))
                {
                    continue;
                }

                var subOrder = _companySubOrderService.GetById(new Guid(subOrderId));
                if (subOrder != null)
                {
                    order.SubOrders.Add(subOrder);
                }
            }
        }
Beispiel #2
0
        public ActionResult Edit(Guid id)
        {
            var model = new HospitalBookProcessViewModel();

            using (UnitOfWorkManager.NewUnitOfWork())
            {
                CompanySubOrder order = _companySubOrderService.GetById(id);
                model.CompanySubOrder = order;
            }
            return(View(model));
        }