using Bit.Api.Auth.Models.Public.Request; using Bit.Core.Entities; namespace Bit.Api.Models.Public.Request; public class MemberUpdateRequestModel : MemberBaseModel { /// /// The associated collections that this member can access. /// public IEnumerable Collections { get; set; } /// /// Ids of the associated groups that this member will belong to /// public IEnumerable Groups { get; set; } public virtual OrganizationUser ToOrganizationUser(OrganizationUser existingUser) { existingUser.Type = Type.Value; existingUser.AccessAll = AccessAll.Value; existingUser.ExternalId = ExternalId; return existingUser; } }