public async Task <IActionResult> GetCodesDefault() { var Response = new ListResponse <Code>(); try { Response.Model = await _ICodeRepository.GetAllCodesDefaultAsync(); Response.Message = $"Querying all codes with default information. {_accessor.HttpContext.Connection.RemoteIpAddress.ToString()}"; _Logger.LogInfo(ControllerContext, Response.Message); } catch (Exception ex) { Response.DidError = true; Response.Message = "Internal Server Error."; _Logger.LogError(ControllerContext, $"Error Message: {ex.Message}"); } return(Response.ToHttpResponse()); }