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); }
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); }