public async Task <DeleteResponse> DeleteAsync(int id) { var deleteResponse = new DeleteResponse(); try { deleteResponse = await _auditRepository.DeleteAsync(id); } catch (Exception ex) { Console.WriteLine(ex); deleteResponse.AddError(ex); _logManager.LogError(ex, "Unable to delete audit"); } return(deleteResponse); }