private void setUserinfo()
        {
            var session = System.Web.HttpContext.Current.Session;

            if (session["u"] == null)
            {
                var me = System.Web.HttpContext.Current.User;
                session["u"] = BaseUserController.GetUser(me.Identity.Name);
            }
            currentUser = session["u"] as User;
            //ViewBag.IsValid = currentUser.IsValid;
        }
 public ClientRegisterController()
 {
     currentUser = BaseUserController.GetUser(User.Identity.Name);
 }