예제 #1
0
        public ActionResult Insert(int id = 0)
        {
            testCLS testModel = new testCLS();

            using (andinoshopEntities db = new andinoshopEntities())
            {
                testModel.RolCollection = db.type_user.ToList <type_user>();
            }

            return(View(testModel));
        }
예제 #2
0
        public ActionResult Delete(int IdUsuario)
        {
            testCLS uTestCLS = new testCLS();
            var     datos    = client.usuarioDatos(IdUsuario);

            uTestCLS.user_id       = datos.user_id;
            uTestCLS.name          = datos.name;
            uTestCLS.phone         = datos.phone;
            uTestCLS.email         = datos.email;
            uTestCLS.username      = datos.username;
            uTestCLS.password_user = datos.password_user;
            uTestCLS.roles         = datos.rol;

            return(View(uTestCLS));
        }
예제 #3
0
 public ActionResult Delete(testCLS uTestCLS)
 {
     client.usuarioGuardar(uTestCLS.user_id, uTestCLS.name, uTestCLS.phone, uTestCLS.email, uTestCLS.username, uTestCLS.password_user, uTestCLS.rol, "D");
     return(RedirectToAction("Index"));
 }
예제 #4
0
 public ActionResult Insert(testCLS otestCLS, testCLS test)
 {
     client.usuarioGuardar(0, otestCLS.name, otestCLS.phone, otestCLS.email, otestCLS.username, otestCLS.password_user, otestCLS.rol, "A");
     return(RedirectToAction("Index"));
 }