protected override void Initialize(System.Web.Routing.RequestContext requestContext) { base.Initialize(requestContext); this.dbContext = ContextFactory.GetContextPerRequest(); fileManager.setDBContext(this.dbContext); patientManager = new PatientInfoManager(fileManager, db, dbContext); patientManager.setData(data); patientManager.setPropertyFile(System.Configuration.ConfigurationManager.AppSettings["PropertyFile"]); utilManager = new UtilManager(data); ViewBag.BasePath = System.Configuration.ConfigurationManager.AppSettings["SiteName"]; ViewBag.HostName = System.Environment.MachineName; }