/// <summary> /// Initalize controller with Injectors /// </summary> /// <param name="tokenService"></param> /// <param name="profileService"></param> /// <param name="captchaService"></param> /// <param name="fileService"></param> /// <param name="profileCacheService"></param> /// <param name="userService"></param> public ApiUserController( ITokenService tokenService, IProfileService profileService, ICaptchaService captchaService, IFileService fileService, IValueCacheService <string, ProfileModel> profileCacheService, IUserService userService) { _tokenService = tokenService; _profileService = profileService; _captchaService = captchaService; _fileService = fileService; _profileCacheService = profileCacheService; _userService = userService; }
/// <summary> /// Initialize service with injectors. /// </summary> /// <param name="unitOfWork"></param> /// <param name="profileCacheService"></param> /// <param name="profileService"></param> /// <param name="mapper"></param> /// <param name="dbService"></param> /// <param name="fileService"></param> /// <param name="appPath"></param> public UserService(IUnitOfWork unitOfWork, IValueCacheService <string, ProfileModel> profileCacheService, IProfileService profileService, IMapper mapper, UrlHelper urlHelper, IDbService dbService, IFileService fileService, AppPathModel appPath) { _unitOfWork = unitOfWork; _profileCacheService = profileCacheService; _profileService = profileService; _mapper = mapper; _dbService = dbService; _fileService = fileService; _urlHelper = urlHelper; _appPath = appPath; }
/// <summary> /// Initialize controller with injectors. /// </summary> /// <param name="unitOfWork"></param> /// <param name="identityService"></param> /// <param name="systemTimeService"></param> /// <param name="encryptionService"></param> /// <param name="emailService"></param> /// <param name="profileCacheService"></param> public AccountController(IUnitOfWork unitOfWork, IIdentityService identityService, ISystemTimeService systemTimeService, IEncryptionService encryptionService, IValueCacheService <int, ProfileViewModel> profileCacheService, IEmailService emailService) : base(unitOfWork, identityService, systemTimeService) { _encryptionService = encryptionService; _emailService = emailService; _profileCacheService = profileCacheService; }