public static void CreateMember() { StandardMessages.CreateMessage("a Member"); Member member = MemberDataCapture.Member(); MemberRepository.SaveMemberToDB(member); StandardMessages.WasCreatedMessage("member"); }
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"); } }