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);
 }
Example #3
0
 public async Task Delete(int id)
 {
     await _repository.Delete(id);
 }
Example #4
0
 public async Task Delete(Guid id)
 {
     await _repo.Delete(id);
 }