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

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