Exemplo n.º 1
0
        public virtual bool Remove(int contactId)
        {
            contactId.CheckLessThanOrEqual(0, nameof(contactId));
            _logger.LogInformation($"Remove Contact id: {contactId}");

            return(_contactRepo.Delete(contactId));
        }
Exemplo n.º 2
0
 public string Delete(int ID)
 {
     return(_contactRepo.Delete(ID));
 }
Exemplo n.º 3
0
 public IActionResult Delete(long id)
 {
     Console.WriteLine($"Delete contact {id}");
     _repo.Delete(id);
     return(NoContent());
 }
Exemplo n.º 4
0
 public void Delete(int id)
 {
     _mockContactRepo.Delete(id);
 }