public async Task DeleteAsync(User entity) { try { await m_dataContext.DeleteAsync(entity); } catch (Exception e) { m_logger.LogError(e, $"Could not delete a User : {JsonConvert.SerializeObject(entity, Formatting.Indented)}"); } }