Beispiel #1
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,Nombre,Cedula,Correo,FechaIngreso")] CI cI)
        {
            if (ModelState.IsValid)
            {
                db.Entry(cI).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(cI));
        }
Beispiel #2
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,Monto,Interes,Plazo,Cuota,CIID,FechaInicioPrestamo")] PT pT)
        {
            if (ModelState.IsValid)
            {
                db.Entry(pT).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.CIID = new SelectList(db.CI, "Id", "Nombre", pT.CIID);
            return(View(pT));
        }