public ActionResult Edit([Bind("ixPayment,sPayment,ixInvoice")] PaymentsPost payments)
        {
            if (ModelState.IsValid)
            {
                payments.UserName = User.Identity.Name;
                _paymentsService.Edit(payments);
                return(RedirectToAction("Index"));
            }
            ViewBag.ixInvoice = new SelectList(_paymentsService.selectInvoices().Select(x => new { x.ixInvoice, x.sInvoice }), "ixInvoice", "sInvoice", payments.ixInvoice);

            return(View(payments));
        }