예제 #1
0
 public UserService()
 {
     _userManager       = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>();
     _roleManager       = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationRoleManager>();
     _categoriaServicio = new CategoriaServicio();
     _roleService       = new RoleService();
     _context           = new ApplicationDbContext();
 }
예제 #2
0
 public SolicitudService()
 {
     context           = new ApplicationDbContext();
     userManager       = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>();
     userService       = new UserService();
     saldoDiasService  = new SaldoDiasDisponiblesServicio();
     emailNotification = new EmailNotificationService();
     roleService       = new RoleService();
     categoriaService  = new CategoriaServicio();
 }