Ejemplo n.º 1
0
        public IActionResult Edit(EntryDTO entry)
        {
            _logger.LogInformation($"[Phonebook Controller] Received edit contact request, entryId:{entry.Id}");
            var result = _phoneService.EditContact(entry);

            return(Ok(result));
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 public bool EditContact(EntryDTO existingEntry)
 {
     return(_phoneService.EditContact(existingEntry));
 }