public ActionResult Index(RegisterIndexModel model)
 {
     UserInfo useInfo = model.GetEntity();
     this.IUserInfoDataProvider.Add(useInfo);
     FormsAuthentication.SignOut();
     FormsAuthentication.SetAuthCookie(useInfo.ID.ToString(), true);
     return RedirectToAction("Index", "Home", null);
 }
 // GET: Register
 public ActionResult Index()
 {
     RegisterIndexModel model = new RegisterIndexModel();
     return View(model);
 }