public IActionResult Post([FromBody] AuthenticationDto authentication) { var token = _authService.GetToken(authentication.Login, authentication.Password); if (string.IsNullOrEmpty(token)) { _Logger.LogWarning($"Authentication filed for {authentication.Login}"); return(BadRequest()); } return(Ok(token)); }