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