private IActionResult HandleAuthenticationFailure(IAppWrapper response) { Console.WriteLine(response.Exception.Message); if (response.Exception.InnerException != null) { Console.WriteLine(response.Exception.InnerException.Message); } return(this.UnauthorizedResponse()); }
private IActionResult HandleServiceFailure(IAppWrapper response) { Console.WriteLine(response.Exception.Message); if (response.Exception.InnerException != null) { Console.WriteLine(response.Exception.InnerException.Message); } return(this.BadRequestResponse(response.Message)); }