public LoginTokenModel(string userId, LoginTypes loginType) { UserId = userId; LoginType = loginType.ToString(); CreationTime = DateTime.Now; int AccessTokenMinutes = int.Parse(ConfigurationManager.AppSettings["AccessTokenMinutes"]); ExpiredTime = CreationTime.AddMinutes(AccessTokenMinutes); Token = Guid.NewGuid().ToString(); }