示例#1
0
        public EmployerRepository(IOwinContext context)
        {
            _ctx = context.Get <DBContext>();

            _userManager = context.Get <ApplicationUserManager>();
        }
示例#2
0
        public EmployerRepository()
        {
            _ctx = HttpContext.Current.GetOwinContext().Get <DBContext>();

            _userManager = HttpContext.Current.GetOwinContext().Get <ApplicationUserManager>();
        }