Beispiel #1
0
        public static void CreateMember()
        {
            StandardMessages.CreateMessage("a Member");
            Member member = MemberDataCapture.Member();

            MemberRepository.SaveMemberToDB(member);
            StandardMessages.WasCreatedMessage("member");
        }
Beispiel #2
0
        public static void UpdateMember()
        {
            Member memberToUpdate = SelectMemberById.SelectMember("update");

            if (memberToUpdate != null)
            {
                Member updatedMember = MemberDataCapture.Member();
                MemberRepository.UpdateMember(memberToUpdate.Id, updatedMember.Name, updatedMember.Age);
                StandardMessages.UpdatedMessage("member");
            }
        }