public IActionResult Edit(EntryDTO entry) { _logger.LogInformation($"[Phonebook Controller] Received edit contact request, entryId:{entry.Id}"); var result = _phoneService.EditContact(entry); return(Ok(result)); }
public bool EditContact(EntryDTO existingEntry) { try { return(_phoneService.EditContact(existingEntry)); } catch (Exception ex) { _logger.LogError($"Exception occurred while editing contact. entryId: {existingEntry.Id}, stackTrace: {ex.ToString()}"); return(false); } }
public bool EditContact(EntryDTO existingEntry) { return(_phoneService.EditContact(existingEntry)); }