Beispiel #1
0
        public async Task <IActionResult> Car(string input = null)
        {
            _logger.LogInformation("view car");
            var viewModel = new CarViewModels
            {
                CarId        = car.GetCarId(User.Identity.Name).Result,
                Aerodynamics = car.GetAerodynamics(User.Identity.Name).Result,
                Brakes       = car.GetBrakes(User.Identity.Name),
                Engines      = car.GetEngine(User.Identity.Name),
                Gearboxs     = car.GetGearboxs(User.Identity.Name),
                ModelsCars   = car.GetModelsCars(User.Identity.Name),
                Mountings    = car.GetMountings(User.Identity.Name),
                Turbo        = car.GetTurbo(User.Identity.Name),
                MaxSpeed     = car.GetMaxSpeed(User.Identity.Name),
                Text         = input,
            };

            return(this.View(viewModel));
        }