public AccountController()
     : base(new UserService())
 {
     _roleService = new ApplicationRoleService();
 }
Example #2
0
 public ApplicationRoleController(IErrorService errorService,
                                  IApplicationRoleService appRoleService) : base(errorService)
 {
     _appRoleService = appRoleService;
 }
 public ApplicationRoleController(IErrorService errorService,
                                  IApplicationRoleService appRoleService) : base(errorService)
 {
     _appRoleService = appRoleService;
     this._mapper    = AutoMapperConfiguration.Configuration().CreateMapper();
 }
 public ApplicationRoleController(IExceptionLogService errorService,
                                  IApplicationRoleService appRoleService, ApplicationUserManager userManager) : base(errorService)
 {
     _appRoleService = appRoleService;
     _userManager    = userManager;
 }
Example #5
0
 public AdminApplicationRoleController(IApplicationRoleService applicationRoleService, ILayoutAdminService layoutService
                                       )
     : base(applicationRoleService, layoutService)
 {
     _applicationRoleService = applicationRoleService;
 }
        public DeviceController(IDistrictService districtService, IDeviceService deviceService, ApplicationUserManager userManager, IApplicationRoleService applicationRoleService, IExceptionLogService errorService) : base(errorService)
        {
            this._errorService = errorService;

            this._districtService = districtService;

            this._userManager            = userManager;
            this._applicationRoleService = applicationRoleService;

            this._deviceService = deviceService;
        }
Example #7
0
 public UserService()
     : base(new UserRepository())
 {
     _userRepository = new UserRepository();
     _roleService    = new ApplicationRoleService();
 }
        public ApplicationUserController(
            UserManager <ApplicationUser> userManager,
            SignInManager <ApplicationUser> signInManager,
            IOptions <IdentityCookieOptions> identityCookieOptions,
            ILoggerFactory loggerFactory, IOptions <JwtIssuerOptions> jwtOptions, RoleManager <IdentityRole> roleManager, ILoggingRepository loggingRepository, IApplicationGroupService appGroupService, IApplicationRoleService appRoleService)
        {
            _userManager       = userManager;
            _signInManager     = signInManager;
            _roleManager       = roleManager;
            _loggingRepository = loggingRepository;
            _appGroupService   = appGroupService;
            _appRoleService    = appRoleService;
            //_context = context;


            _externalCookieScheme = identityCookieOptions.Value.ExternalCookieAuthenticationScheme;
            _logger     = loggerFactory.CreateLogger <AccountController>();
            _jwtOptions = jwtOptions.Value;
        }
Example #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="roleService"></param>
 public RoleController(IApplicationRoleService roleService) : base()
 {
     _roleService = roleService;
 }