//ONLY CUSTOMER IS AUTHORISED //CUSTOMER ORDER LIST (HISTORY/CART) public ActionResult MyOrders() { UserLoginModel user = (UserLoginModel)HttpContext.Session["USER"]; if (user == null) { RedirectToAction("RedirectTo", "Account"); } int id = user.Id; IEnumerable <RentProductModel> rentedProductList = null; try { rentedProductList = productActionContext.GetRentedProductsByUserId(id); } catch (Exception e) { //LOG EXCEPTION logger.Error("Rented Product List is not loaded by MyOrders() of User Controller : ", e); //*************// } return(View(rentedProductList)); }