Ejemplo n.º 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" }));
        }
Ejemplo n.º 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");
        }