public CacheService(IMemoryCache memoryCache, IUnitOfWork unitOfWork, IMapper mapper, BZTopicRepository bZTopicRepository, BZUserRepository bZUserRepository) { _memoryCache = memoryCache; _unitOfWork = unitOfWork; this.mapper = mapper; this.bZTopicRepository = bZTopicRepository; this.bZUserRepository = bZUserRepository; }
/// <summary> /// /// </summary> /// <param name="unitOfWork"></param> /// <param name="mapper"></param> /// <param name="bZUserRepository"></param> /// <param name="userManager"></param> /// <param name="roleManager"></param> /// <param name="cacheService"></param> public UserController(IUnitOfWork unitOfWork, IMapper mapper, BZUserRepository bZUserRepository, UserManager <BZUserModel> userManager, RoleManager <IdentityRole <string> > roleManager, ICacheService cacheService) { _mapper = mapper; _unitOfWork = unitOfWork; _bZUserRepository = bZUserRepository; _userManager = userManager; _cacheService = cacheService; _roleManager = roleManager; }
/// <summary> /// /// </summary> /// <param name="bZUserRepository"></param> /// <param name="cacheService"></param> /// <param name="userManager"></param> /// <param name="roleManager"></param> /// <param name="mapper"></param> public UserController( BZUserRepository bZUserRepository, ICacheService cacheService, UserManager <BZUserModel> userManager, RoleManager <IdentityRole <string> > roleManager, IMapper mapper) { _bZUserRepository = bZUserRepository; _cacheService = cacheService; this.userManager = userManager; this.roleManager = roleManager; this.mapper = mapper; }