public ActionResult Create(Pago pag) { ViewBag.cliente = pagoService.FindAll(); bool rptainsert = pagoService.insert(pag); if (rptainsert) { return(RedirectToAction("Index")); } return(View()); }
public ActionResult Create(Pago collection) { ViewBag.ContratoServ = ContratoServ.FindAll(); bool rpta = Pagoserv.insert(collection); if (rpta) { return(RedirectToAction("Index")); } return(View()); }