Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.tb_clientes.Add(cli);
- db.SaveChanges(); //agregar
- return RedirectToAction("Index");
- }
- catch(Exception ex)
- {
- ModelState.AddModelError("",ex.Message);
- ViewBag.pais = new SelectList(Paises(),"Idpais","Nombrepais",reg.Idpais);
- return View(reg);
- }
- }
Add Comment
Please, Sign In to add comment