public LoginResponseDto Login([FromBody] LoginDto loginDto)
        {
            if (loginDto == null || string.IsNullOrWhiteSpace(loginDto.UserName) ||
                string.IsNullOrWhiteSpace(loginDto.Password))
            {
                LogService.CreateAuthenticationLog(LogLevel.ERROR, JsonConvert.SerializeObject(loginDto));
                throw new BadRequestException();
            }

            return(AccountService.Login(loginDto));
        }