public async Task <IActionResult> GetAllCarTypes() { Console.WriteLine("Controller: Get all car types"); await Db.Connection.OpenAsync(); var query = new DatabaseQuery(Db); var result = await query.AllCarTypes(); return(new OkObjectResult(result)); }