public ActionResult ReturnCheckout(string orderId, string tableIds) { var currentUser = OperatorProvider.Provider.GetCurrent(); var userResult = _oldUserRepository.GetAll <Smooth.IoC.UnitOfWork.ISession>(); var userList = AutoMapperExtend <CzdmModel, UserInfo> .ConvertToList(userResult, new List <UserInfo>()); var order = _orderRepository.GetOrderDTO(orderId.ToInt()); ViewBag.CustomerId = (order == null || order.Id <= 0) ? 0 : order.CustomerId; var customerList = _oldCustRepository.GetListByStatus(null); ViewBag.CustomerList = customerList; ViewBag.UserList = userList; return(View()); }