public object GetCustomerOrders(Order OrderObj)
 {
     try
     {
         bool Ishistory = false;
         List <OrderAppViewModel> CartList = Mapper.Map <List <Order>, List <OrderAppViewModel> >(_orderBusiness.GetCustomerOrders(OrderObj.CustomerID, Ishistory));
         if (CartList.Count == 0)
         {
             throw new Exception(constants.NoItems);
         }
         return(JsonConvert.SerializeObject(new { Result = true, Records = CartList }));
     }
     catch (Exception ex)
     {
         return(JsonConvert.SerializeObject(new { Result = false, Message = ex.Message }));
     }
 }