public AccountManagerController(UserManager <AppUser> userManager,
                                 EmailSmsSenderService sendEmailsSmsService,
                                 AppDbContext context,
                                 IMapper mapper,
                                 SignInManager <AppUser> signInManager,
                                 IWebHostEnvironment webHostEnvironment,
                                 IConfiguration config)
 {
     _sendEmailsSmsService = sendEmailsSmsService;
     _mapper             = mapper;
     _context            = context;
     _userManager        = userManager;
     _signInManager      = signInManager;
     _webHostEnvironment = webHostEnvironment;
     _config             = config;
     UrlProtocol         = _config["ApiUrl:UrlProtocol"];
     ApiUrl = _config["ApiUrl:Url"];
 }
 public AccountController(UserManager <AppUser> userManager,
                          IMapper mapper,
                          ITokenService tokenService,
                          SignInManager <AppUser> signInManager,
                          EmailSmsSenderService sendEmailsSmsService,
                          IConfiguration config,
                          GlobalFunctions globalFunc,
                          AppDbContext context)
 {
     _userManager          = userManager;
     _mapper               = mapper;
     _tokenService         = tokenService;
     _signInManager        = signInManager;
     _sendEmailsSmsService = sendEmailsSmsService;
     _config               = config;
     _globalFunc           = globalFunc;
     _context              = context;
     UrlProtocol           = _config["ApiUrl:UrlProtocol"];
     ApiUrl = _config["ApiUrl:Url"];
 }