public ActionResult Edit(int id)
        {
            var model       = new EditViewModel();
            var orderStatus = orderStatusProvider.GetOrderStatus(id);

            Mapper.DynamicMap(orderStatus, model);
            return(View(model));
        }
Exemple #2
0
        public string GetOrderStatusName(int orderStatusId)
        {
            var orderStatus = orderStatusProvider.GetOrderStatus(orderStatusId);

            if (orderStatus != null)
            {
                return(orderStatus.Name);
            }
            return(String.Empty);
        }