Пример #1
0
        public void Update(string occupation, string church, MemberPersonalData personalData, MemberAddress address,
                           MemberAdmission admission, MemberFamily family, MemberContacts contacts, string userOperation)
        {
            FillMember(occupation, church, personalData, address, admission, family, contacts, LogOperation.UPDATE, userOperation);

            (new MemberValidation()).ValidateRules(this);
        }
Пример #2
0
        private void FillMember(string occupation, string church, MemberPersonalData personalData, MemberAddress address,
                                MemberAdmission admission, MemberFamily family, MemberContacts contacts, string logOperation, string userOperation)
        {
            Occupation   = occupation;
            Church       = church;
            Search       = personalData != null ? $"{personalData.Name.ToLower().RemoveDiacritics()} {personalData.Profession.ToLower().RemoveDiacritics()}" : null;
            Status       = MemberStatus.ACTIVE;
            PersonalData = personalData;
            Address      = address;
            Admission    = admission;
            Family       = family;
            Contacts     = contacts;

            AddLog(logOperation, userOperation);
        }