Ejemplo n.º 1
0
 public ActionResult Order()
 {
     var user = GetUser();
     IEnumerable<order> iorders = DataManager.Order.GetOrdersByUserId(user.Id, true);
     IEnumerable<order> oorders = DataManager.Order.GetOrdersByUserId(user.Id, false);
     OrderListViewModel model = new OrderListViewModel
     {
         Firstname = user.FristName,
         Surname = user.Surname,
         UserName = user.UserName,
         IncommingOrderList = iorders,
         OutcommingOrderList = oorders
     };
     return View(model);
 }