public async Task <ResponseMessage> CreateAsync(Exception ex) { await _auditTrailService.CreateAsync(ex, DateTime.UtcNow).ConfigureAwait(false); var responseMessage = new ResponseMessage { StatusCode = (int)_auditTrailService.GetStatusCode(), Errors = _auditTrailService.GetMessages() }; return(responseMessage); }