无法将类型Threading.Tasks.Task <Collection.Generic.List <Model >>隐式转换为模型

我想从.NET API中获取数据,并将其包含在参考中。 但是,严重的是我被异常波纹管卡住了。

Error 2 Cannot implicitly convert type System.Threading.Tasks.Task<System.Collections.Generic.List<BizCover.Repository.Cars.Car>> to BizCover.Api.Cars.Model.CarsVM

这是我在API控制器中的代码。

public IHttpActionResult getAllDataCars()
    {
        CarRepository carRep = new CarRepository();

        IHttpActionResult result = null;

        try
        {
            CarsVM dataAPICars = new CarsVM(); 
            dataAPICars = carRep.GetAllCars(); //here's the error return.

            if (dataAPICars != null) 
            {
                var a = "ada";
            }
            else
            {
                var b = "null";
            }
        }
        catch (Exception ex)
        {
            var c = ex.ToString();
        }

        return result;

    }

这也是我的模特

public class CarsVM
{
    public CarsVM()
    {

    }

    public string Colour { get; set; }
    public string CountryManufactured { get; set; }
    public int Id { get; set; }
    public string Make { get; set; }
    public string Model { get; set; }
    public decimal Price { get; set; }
    public int Year { get; set; }

    public CarsVM(string Colour, string CountryManufactured, int Id, string Make, string Model, decimal Price, int Year)
    {
        this.Colour = Colour;
        this.CountryManufactured = CountryManufactured;
        this.Id = Id;
        this.Make = Make;
        this.Model = Model;
        this.Price = Price;
        this.Year = Year;
    }

}

我的目标是我要从参考(CarRepository)获取数据并将其存储在我的模型中。 我不太清楚.NET Framework API应该如何逐步工作以及如何实现等待异步。