public IActionResult AllOrders() { if (Models.Assets.StoreSession == false) { return(Redirect("~/Home/Signin")); } ShopHistoryModel AllHistory = new ShopHistoryModel(_PBrepository); if (AllHistory.none) { ViewData["No_History"] = "No orders have been made."; } return(View(AllHistory)); }
public IActionResult Recent(int id) { if (Models.Assets.StoreSession == false) { return(Redirect("~/Home/Signin")); } Assets.ShopInfo = _PBrepository.GetStoreById(id); ShopHistoryModel ShopHistory = new ShopHistoryModel(_PBrepository, id.ToString()); if (ShopHistory.none) { ViewData["No_History"] = "No orders have been made at this location."; } return(View(ShopHistory)); }