public ActionResult Agregar(BancoModel model) { try { if (ModelState.IsValid) { using (CPMEntities datos = new CPMEntities()) { datos.sp_AgregarBanco(model.Nombre, model.Telefono, model.Correo); } return(Redirect("~/Banco/")); } return(View(model)); } catch (Exception ex) { throw new Exception(ex.Message); } }