Beispiel #1
0
 public AuthorizationController(
     string authKey,
     ILogger logger, IRepository repo, IMapper mapper, IUserSpecificationProvider specs)
 {
     this.Key    = authKey;
     this.Logger = logger;
     this.Repo   = repo;
     this.Mapper = mapper;
     this.Specs  = specs;
 }
Beispiel #2
0
 public UserController(IBaseManager <User, long> manager, IUserSpecificationProvider specs) : base(manager)
 {
     this.Specs = specs;
 }
Beispiel #3
0
 public UserManager(IRepository repo, IMapper mapper, IValidator <User> validator, ILogger logger, IAuthManager <User, long> auth, IUserSpecificationProvider specs)
     : base(repo, mapper, validator, logger, auth, specs)
 {
     FilterIncludes = new Expression <Func <User, object> >[]
     {
         u => u.UserRoles.Select(ur => ur.Role)
     };
     GetIncludes    = this.FilterIncludes;
     UseHardDeletes = false;
 }