// GET: Appointments
        public ActionResult Index()
        {
            if (!caSession.AuthoriseSession())
            {
                return(Redirect((string)Session["ErrorUrl"]));
            }
            var results = _marketServices.GetAllValidMarkets(CurrentTenantId);

            return(View(results));
        }
예제 #2
0
        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());
        }