예제 #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());
        }
예제 #2
0
 public void Delete(int id)
 {
     _paymentsRepository.Delete(id);
 }