namespace CarErrorSample.Models
{
    public class Car
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Model { get; set; }
        public double Weight { get; set; }
        public int TypeId { get; set; }
        public int CountryId { get; set; }

        public CarType CarType { get; set; }
        public Country Country { get; set; }

        public static System.Collections.Generic.List<Car> Cars()
        {
            System.Collections.Generic.List<Car> cars =
                new System.Collections.Generic.List<Car>();
            cars.Add(new Car()
            {
                Id = 1,
                Name = "Mercedes Benz",
                Model = "GLK350",
                Weight = 1200,
                TypeId = 1,
                CountryId = 1
            });
            cars.Add(new Car()
            {
                Id = 2,
                Name = "Golf",
                Model = "SR 1.6 ",
                Weight = 900,
                TypeId = 1,
                CountryId = 2
            });
            cars.Add(new Car()
            {
                Id = 1,
                Name = "Golf",
                Model = "SR 1.6",
                Weight = 900,
                TypeId = 2,
                CountryId = 1

            });
            return cars;
        }
    }
}