/// <summary>
 /// Get all orders of customer
 /// </summary>
 /// <param name="CustomerId"></param>
 /// <returns></returns>
 public static AllOrdersDTO Orders(Guid CustomerId)
 {
     try
     {
         AllOrdersDTO saved = new AllOrdersDTO()
         {
             Orders = OrderData.Orders(CustomerId)
         };
         return(saved);
     }
     catch (Exception)
     {
         return(null);
     }
 }
Exemple #2
0
        // GET: Orders
        public ActionResult Index()
        {
            AllOrdersDTO orderDTO = OrderLogic.Orders(new Guid(Session["id"].ToString()));

            return(View(orderDTO));
        }