/// <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)));
 }
 /// <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);
 }