/// <summary> /// Initializes a new RestaurantUserIdentity with specified Information /// </summary> /// <param name="name">The string Name of the user</param> /// <param name="authenticationtype">The AuthenticationType of the User's Authentication</param> /// <param name="isauthentiacted">Boolean value indicating Is user Authenticated</param> /// <param name="userid">The integer Id of the User</param> /// <param name="friendlyname">The string Friendly name of the user</param> /// <param name="userguid">The Unique Guid of the user </param> public RestaurantUserIdentity(string name, FormsAuthenticationHelper.AuthenticationType authenticationtype, bool isauthentiacted, int userid, string friendlyname, Guid userguid) { Name = name; AuthenticationType = authenticationtype.ToString(); IsAuthenticated = isauthentiacted; UserId = userid; FriendlyName = friendlyname; UserGuid = userguid; }
/// <summary> /// Initializes a new Identity with basic Identity information /// </summary> /// <param name="name">The string Name of the user</param> /// <param name="authenticationtype">The AuthenticationType of the User's Authentication</param> /// <param name="isauthentiacted">Boolean value indicating Is user Authenticated</param> public RestaurantUserIdentity(string name, FormsAuthenticationHelper.AuthenticationType authenticationtype, bool isauthentiacted) : this(name, authenticationtype, isauthentiacted, 0, null, Guid.Empty) { }