public async Task <int> AddContact(ContactDto contact) { try { return(await _contactRepository.AddContact(ContactMapper.MapFromDto(contact))); } catch (ArgumentException) { throw; } }
public async Task UpdateContact(ContactDto contact) { try { await _contactRepository.UpdateContact(ContactMapper.MapFromDto(contact)); } catch (ArgumentException) { throw; } catch (InvalidOperationException) { throw; } }