Example #1
0
        public ActionResult Index(string id)
        {
            Session["CurrentOffice"] = null;
            Session.Remove("CurrentOffice");
            if (id == null)
            {
                if (Session["officeDivision"] == null)
                {
                    Session["officeDivision"] = "Barishal";
                }
            }
            else
            {
                Session["officeDivision"] = id;
            }

            return(View(officeService.GetAllForOffice(Session["officeDivision"].ToString())));
        }