Пример #1
0
        public ActionResult Create([Bind(Include = "ID_RUBRO,DESCRIPCION")] RUBRO rUBRO)
        {
            if (ModelState.IsValid)
            {
                db.RUBRO.Add(rUBRO);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(rUBRO));
        }
Пример #2
0
        public ActionResult Create([Bind(Include = "ID_TALENTO,ID_RUBRO,EMAIL,PASSWORD,NOMBRE,APELLIDO,CURRICULUM")] TALENTO tALENTO)
        {
            if (ModelState.IsValid)
            {
                db.TALENTO.Add(tALENTO);
                db.SaveChanges();
                return(RedirectToAction("Login", "Account"));
            }



            ViewBag.ID_RUBRO = new SelectList(db.RUBRO, "ID_RUBRO", "DESCRIPCION", tALENTO.ID_RUBRO);
            return(View(tALENTO));
        }
Пример #3
0
        public ActionResult Create([Bind(Include = "ID_EMPRESA,ID_RUBRO,NOMBRE, ABOUT")] EMPRESA eMPRESA)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    db.EMPRESA.Add(eMPRESA);
                    db.SaveChanges();
                } catch (Exception e)
                {
                }
                return(RedirectToAction("Index"));
            }

            ViewBag.ID_RUBRO = new SelectList(db.RUBRO, "ID_RUBRO", "DESCRIPCION", eMPRESA.ID_RUBRO);
            return(View(eMPRESA));
        }