Пример #1
0
 private static void DisplayServicesForMechanic(List <Service> serviceDetails, int staffId)
 {
     if (serviceDetails.Count > 0)
     {
         ServiceDisplayHelper.DisplayServicesByMechanic(serviceDetails);
         MenuHelper.DisplayPressKeyToReturnToMainMenu();
     }
     else
     {
         var mechanic = MechanicsService.GetMechanic(staffId);
         MenuHelper.DisplayNoServicesForMechanic(mechanic);
     }
 }
        private static bool MechanicExists(int staffId)
        {
            var mechanic = MechanicsService.GetMechanic(staffId);

            return(mechanic != null);
        }