Exemplo n.º 1
0
        public async Task <IActionResult> Delete(string id)
        {
            var payment = await _paymentsRepository.Get(id);

            if (payment == null)
            {
                return(NotFound());
            }

            await _paymentsRepository.Delete(payment);

            return(new NoContentResult());
        }
Exemplo n.º 2
0
 public void Delete(int id)
 {
     _paymentsRepository.Delete(id);
 }