Exemple #1
0
        public ActionResult ChangeTenant(string tenant)
        {
            Session["vTenantID"] = tenant;
            using (WFMDBDataContext db = new WFMDBDataContext())
            {
                db.uspWFMCreateDefaultShift(tenant);
                var result = db.uspWFMGetDBServerByTenant(tenant);
                Session[AppConst.Const_Session_DBServer_Key] = result.FirstOrDefault().Column1;
            }

            return(RedirectToAction("index", "calldetail", new { area = "report" }));
        }
Exemple #2
0
        public ActionResult ChangeTenant(string tenant)
        {
            Session["vTenantID"] = tenant;
            using (WFMDBDataContext db = new WFMDBDataContext())
            {
                db.uspWFMCreateDefaultShift(tenant);
                var result = db.uspWFMGetDBServerByTenant(tenant);
                Session[AppConst.Const_Session_DBServer_Key] = result.FirstOrDefault().Column1;  
            }

            return RedirectToAction("index", "home");
        }