Example #1
0
        public static void ReturnItemMenu()
        {
            Member member = SelectMemberById.SelectMember("return an item");

            if (member != null)
            {
                MenuSwitches.ReturnItem(member);
            }
        }
Example #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");
            }
        }
Example #3
0
        public static void DeleteSwitch()
        {
            StandardMessages.SelectList("Delete");
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                DeleteItem.DeleteBook();
                break;

            case "2":
                DeleteItem.DeleteMovie();
                break;

            case "3":
                SelectMemberById.DeleteMember();
                break;

            default:
                CommonClasses.StandardMessages.InvalidOption();
                break;
            }
        }
Example #4
0
        public static void BorrowMovieMenu()
        {
            Member member = SelectMemberById.SelectMember("lend a book to");

            LoanProcess.BorrowAMovie(member);
        }