public ActionResult DeleteConfirmed(long id)
        {
            PaymentsPost payments = _paymentsService.GetPost(id);

            payments.UserName = User.Identity.Name;
            _paymentsService.Delete(payments);
            return(RedirectToAction("Index"));
        }
        public void Delete(int id)
        {
            var payments = _paymentsService.GetPayments(id);

            _paymentsService.Delete(payments);
        }