Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. public class Usuario
  2. {
  3. public Usuario()
  4. { }
  5.  
  6. [Display(Name = "Nombre Usuario")]
  7. public string UserName { get; set; }
  8.  
  9. [Display(Name = "Password")]
  10. public string Password { get; set; }
  11. }
  12.  
  13. public class HomeController : Controller
  14. {
  15.  
  16. private Usuario usuario = new Usuario();
  17.  
  18. public ActionResult Index() // pantalla de inicio
  19. {
  20. return View();
  21. }
  22.  
  23. public ActionResult IngresaUsuario()
  24. {
  25. return View();
  26. }
  27.  
  28.  
  29.  
  30. public ActionResult IngresaPassword()
  31. {
  32. usuario.UserName = Request.Form["_usuario"];
  33.  
  34. return View();
  35. }
  36.  
  37.  
  38. public ActionResult EvaluaAutenticacion()
  39. {
  40.  
  41. usuario.Password = Request.Form["_password"];
  42.  
  43.  
  44. return RedirectToAction("SeleccionaPacientes");
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement