static void Main(string[] args) { Motorcycle aboutFord = new Motorcycle(); Console.WriteLine("About car: "); aboutFord.aboutCar(); CarDealer dealerFord = new CarDealer(); Console.WriteLine("Dealer info: "); dealerFord.aboutCar(); CarClient clientFord = new CarClient(); Console.WriteLine("Client: "); clientFord.aboutCar(); clientFord.GetColor("Red"); clientFord.GetYear(2019); clientFord.carModel = "Mondeo"; Console.ReadKey(); }
public async Task <ActionResult> GetYear(int year) { var cars = await _carClient.GetYear(year); return(View(cars)); }