public virtual bool Remove(int contactId) { contactId.CheckLessThanOrEqual(0, nameof(contactId)); _logger.LogInformation($"Remove Contact id: {contactId}"); return(_contactRepo.Delete(contactId)); }
public string Delete(int ID) { return(_contactRepo.Delete(ID)); }
public IActionResult Delete(long id) { Console.WriteLine($"Delete contact {id}"); _repo.Delete(id); return(NoContent()); }
public void Delete(int id) { _mockContactRepo.Delete(id); }