public async Task Update(Entities.Phonebook phonebook) { try { Phonebook.Include(x => x.Entries); Phonebook.Update(phonebook); await base.SaveChangesAsync(true); } catch (Exception ex) { _logger.Log(LogLevel.Critical, ex); throw new Exception(ex.Message); } }