public UserService() { _userManager = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>(); _roleManager = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationRoleManager>(); _categoriaServicio = new CategoriaServicio(); _roleService = new RoleService(); _context = new ApplicationDbContext(); }
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(); }