public ActionResult Index(string username)
 {
     User user = new User();
     user.Username = username;
     user.Password = string.Empty;
     var model = user;
     return View(model);
 }
 public ActionResult Index(User model)
 {
     User _user = new User();
     bool isValid = _user.IsValidUser(model.Username, model.Password);
     if (isValid)
     {
         return RedirectToAction("Index", "RouteTo", new { Username = model.Username });
     }
     ViewBag.Success = true;
     return View();
 }
 public JsonResult IsUseNameAvailable(string Username)
 {
     User _user = new User();
     return Json(_user.IsValidUser(Username), JsonRequestBehavior.AllowGet);
 }