コード例 #1
0
        public async Task <IActionResult> GetAllCars()
        {
            Console.WriteLine("Controller: Get all cars");
            await Db.Connection.OpenAsync();

            var query  = new DatabaseQuery(Db);
            var result = await query.AllCarsAsync();

            return(new OkObjectResult(result));
        }