Beispiel #1
0
        public IActionResult DeleteConfirmed(int id)
        {
            var paymentType = paymentTypeService.GetById(id);

            paymentTypeService.Delete(paymentType);
            return(RedirectToAction(nameof(Index)));
        }
        public void Delete(int id)
        {
            var paymentType = _paymentsTypeService.GetPaymentType(id);

            _paymentsTypeService.Delete(paymentType);
        }