Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Usuario
- {
- public Usuario()
- { }
- [Display(Name = "Nombre Usuario")]
- public string UserName { get; set; }
- [Display(Name = "Password")]
- public string Password { get; set; }
- }
- public class HomeController : Controller
- {
- private Usuario usuario = new Usuario();
- public ActionResult Index() // pantalla de inicio
- {
- return View();
- }
- public ActionResult IngresaUsuario()
- {
- return View();
- }
- public ActionResult IngresaPassword()
- {
- usuario.UserName = Request.Form["_usuario"];
- return View();
- }
- public ActionResult EvaluaAutenticacion()
- {
- usuario.Password = Request.Form["_password"];
- return RedirectToAction("SeleccionaPacientes");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement