public JsonResult FetchOrderHistory(string emailId)
 {
     try
     {
         var temp = rep.OrderHistory(emailId);
         return(Json(temp));
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         return(null);
     }
 }
示例#2
0
        public JsonResult OrderHistory(string emailId)
        {
            List <PackXprezDataAccessLayer.Models.Shipment> orders = null;

            try
            {
                orders = repository.OrderHistory(emailId);
            }
            catch (Exception)
            {
                orders = null;
            }
            return(Json(orders));
        }