public async Task <IActionResult> DeleteRecipient(long id) { var recipient = await _repository.Get(id); if (recipient == null) { return(NotFound()); } _repository.Delete(recipient); await _repository.Save(); return(NoContent()); }
public void Delete(int companyId, Guid uniqueId) { _recipientRepository.Delete(companyId, uniqueId); }
public async Task Delete(int id) { await _repository.Delete(id); }
public async Task Delete(Guid id) { await _repo.Delete(id); }