Ejemplo n.º 1
0
        public override Empty ChangeOrganizationMember(OrganizationMemberList input)
        {
            var organization = State.Organisations[Context.Sender];

            Assert(organization != null, "Organization not found.");
            organization.OrganizationMemberList = input;
            Assert(Validate(organization), "Invalid organization.");
            State.Organisations[Context.Sender] = organization;
            return(new Empty());
        }
 public static bool AnyDuplicate(this OrganizationMemberList organizationMemberList)
 {
     return(organizationMemberList.OrganizationMembers.GroupBy(m => m).Any(g => g.Count() > 1));
 }
Ejemplo n.º 3
0
 public static bool Contains(this OrganizationMemberList organizationMemberList, Address address)
 {
     return(organizationMemberList.OrganizationMembers.Contains(address));
 }
Ejemplo n.º 4
0
 public static bool Empty(this OrganizationMemberList organizationMemberList)
 {
     return(organizationMemberList.Count() == 0);
 }
Ejemplo n.º 5
0
 public static int Count(this OrganizationMemberList organizationMemberList)
 {
     return(organizationMemberList.OrganizationMembers.Count);
 }