Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public ActionResult Index(string username = null, string password = null)
  2. {
  3. if (username == null || password == null)
  4. {
  5. return RedirectToAction("Index", "Auth");
  6. }
  7.  
  8. this.username = username;
  9. this.password = password;
  10.  
  11. ViewBag.Message = "Call Recordings Web Application!";
  12. return View(); //and have tried return View("Index");
  13. }
  14.  
  15. [HttpGet]
  16. public ActionResult Login(string username, string password)
  17. {
  18. return Redirect("~/Home/Index?username="+username+"&password="+password);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement