static void DeleteItem()
        {
            Header("DELETE");

            ShowAllItems();

            Console.Write("Which item to delete? ");

            int itemId = int.Parse(Console.ReadLine());

            Computer blogpost = new ComputerService().GetById(itemId);

            new ComputerService().Delete(blogpost);

            Console.WriteLine("Item is deleted.");
            Console.ReadKey();

            Menu();
        }
        static void PageUpdateItems()
        {
            Header("UPDATE");

            Console.WriteLine("Which number item to update? ");

            int itemId = int.Parse(Console.ReadLine());

            Computer computer = new ComputerService().GetById(itemId);

            if (computer == null)
            {
                Console.WriteLine($"An item with id {itemId} does not exist.");
            }
            else
            {
                Console.WriteLine($"Updating Item with id: {computer.Id}");
            }

            var finished = false;

            while (!finished)
            {
                Write("What do you want to update?");
                Write($"a) Brand ({computer.Brand})");
                Write($"b) Model and year ({computer.ModelName})");
                Write($"c) Date of purchase ({computer.PurchaseDate})");
                Write($"d) Initial cost ({computer.InicialCost})");
                Write($"e) Expiration (discontinuation date, {computer.ExpiredDate})");
                Write($"f) Expiration price (estimated price at end of availability) ({computer.ExpiredCost})");
                Write("g) (Or return) Save and go to menu");
                Write("");
                Write("Write your choice and press enter: ");
                string option = Console.ReadKey().KeyChar.ToString().ToLowerInvariant();
                Write("");
                switch (option)
                {
                case "a":
                    string newBrand = Console.ReadLine();
                    computer.Brand = newBrand;
                    break;

                case "b":
                    Write("Write a new model and year: ex. Macbest 2030 ");

                    string newModelName = Console.ReadLine();
                    computer.ModelName = newModelName;

                    break;

                case "c":
                    Write("Write a new date of purchase! ex. 2021/12/01");

                    var newPurchaseDate = DateTime.Parse(Console.ReadLine());
                    computer.PurchaseDate = newPurchaseDate;

                    break;

                case "d":
                    Write("Write a new inicial cost! ex. 13,000");

                    int.TryParse(Console.ReadLine(), out var newInitialCost);
                    computer.InicialCost = newInitialCost;

                    break;

                case "e":
                    Write("Write a new Expiration date! 3 years from now ex.2023/12/01");

                    var newExpiredDate = DateTime.Parse(Console.ReadLine());
                    computer.ExpiredDate = newExpiredDate;

                    break;

                case "f":
                    Write("Write a new Expiration Price! To sale out");

                    int.TryParse(Console.ReadLine(), out var newExpiredCost);
                    computer.ExpiredCost = newExpiredCost;
                    break;

                default:
                    Write("Editing complete saving now");
                    finished = true;
                    break;
                }
            }

            new ComputerService().Update(computer);

            Menu();
        }