Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CM_UsuarioExterno cM_UsuarioExterno = db.CM_UsuarioExterno.Find(id);

            db.CM_UsuarioExterno.Remove(cM_UsuarioExterno);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "i_Pk_idUsuExterno,vc_Cedula,vc_Nombre,vc_PriApellido,vc_SegApellido,vc_Telefono,vc_Movil,vc_Sexo,vc_Email,vc_Empresa")] CM_UsuarioExterno cM_UsuarioExterno)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cM_UsuarioExterno).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cM_UsuarioExterno));
 }
Exemple #3
0
        // GET: CM_UsuarioExterno/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CM_UsuarioExterno cM_UsuarioExterno = db.CM_UsuarioExterno.Find(id);

            if (cM_UsuarioExterno == null)
            {
                return(HttpNotFound());
            }
            return(View(cM_UsuarioExterno));
        }
Exemple #4
0
        public ActionResult Create([Bind(Include = "i_Pk_idUsuExterno,vc_Cedula,vc_Nombre,vc_PriApellido,vc_SegApellido,vc_Telefono,vc_Movil,vc_Sexo,vc_Email,vc_Empresa")] CM_UsuarioExterno cM_UsuarioExterno)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    db.CM_UsuarioExterno.Add(cM_UsuarioExterno);
                    db.SaveChanges();
                }
                catch (Exception) { }
                return(RedirectToAction("Index"));
            }

            return(View(cM_UsuarioExterno));
        }