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