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