public ActionResult Edit(int id) { var model = new EditViewModel(); var orderStatus = orderStatusProvider.GetOrderStatus(id); Mapper.DynamicMap(orderStatus, model); return(View(model)); }
public string GetOrderStatusName(int orderStatusId) { var orderStatus = orderStatusProvider.GetOrderStatus(orderStatusId); if (orderStatus != null) { return(orderStatus.Name); } return(String.Empty); }