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