Пример #1
0
 /// <summary>
 /// Gets the home membership model from this set
 /// </summary>
 /// <returns>The home membership model</returns>
 public HomeMembership ToHomeMembership()
 {
     return(new HomeMembership(this.User, HomeMembershipModel.GetHomeMembershipAccessFromStrings(this.Roles)));
 }
Пример #2
0
 /// <summary>
 /// Intializes a new instance of the <see cref="HomeMembershipModel"/> class.
 /// </summary>
 /// <param name="membership">The membership object</param>
 public HomeMembershipModel(HomeMembership membership)
 {
     this.User  = membership.User;
     this.Roles = HomeMembershipModel.GetRoles(membership.Access);
 }