// GET: Appointments public ActionResult Index() { if (!caSession.AuthoriseSession()) { return(Redirect((string)Session["ErrorUrl"])); } var results = _marketServices.GetAllValidMarkets(CurrentTenantId); return(View(results)); }
public ActionResult Index() { if (!caSession.AuthoriseSession()) { return(Redirect((string)Session["ErrorUrl"])); } int?marketId = 0; if (Session["MarketId"] != null) { marketId = (int?)Session["MarketId"]; } ViewBag.marketId = marketId; ViewBag.MarketDetailId = new SelectList(_marketServices.GetAllValidMarkets(CurrentTenantId, CurrentWarehouseId), "MarketId", "MarketName", marketId); return(View()); }