Exemple #1
0
        public IActionResult Index()
        {
            List <Vehicles> carList = new List <Vehicles>();

            try
            {
                //var _modelContext = new VehiclesContext();

                carList = _vehicleService.FetchVehicle();
            }
            catch (Exception ex)
            {
                _logger.LogError(" Exception on display of data: " + ex);
            }
            return(View(carList));
        }