private UserContext(LoginInfoModel user) { this.UserId = user.UserId; this.Name = user.Name; this.UserName = user.UserName; this.CompanyId = user.CompanyId; }
public void SignIn(LoginInfoModel user, bool createPersistentCookie = false) { SignIn(user.UserName, "100", user, createPersistentCookie); }