public ActionResult UserS()
 {
     ViewBag.User = session.getSession("usuario");
     if (ViewBag.User == "")
     {
         return(RedirectToAction("Index", "Account"));
     }
     else
     {
         UserDatos obj = new UserDatos();
         return(View(obj.userDatos()));
     }
 }
Esempio n. 2
0
        public void MostrarTablaUsuarios(DataGridView dgv)
        {
            UserDatos user = new UserDatos();

            dgv.DataSource = user.MostrarTablaUsuarios();
        }