Пример #1
0
        public Work DeleteWork()
        {
            Console.Clear();
            Console.Write("Podaj ID firmy: ");
            int.TryParse(Console.ReadLine(), out int id);               //pobieram id z konsolki
            Work work = workService.GetItemBy(id);                      //pobieram obiekt work z metody service

            workService.DeleteItem(work);                               //wysyłam wyszukany obiekt do usunięcia
            Console.ReadKey();
            return(work);
        }