Example #1
0
        public IActionResult CarsManagement()
        {
            var cars = MongoService.GetCars().Result;

            return(View("CarsManagement", cars));
        }
        //GET: /api/cars
        public IEnumerable <CarModel> GetCars()
        {
            var cars = MongoService.GetCars();

            return(cars.Result);
        }