public void GetByMakeIdTest()
        {
            var all = _carModelService.GetByMakeId(2);

            Assert.True(all is IEnumerable <CarModelDto>);
            Assert.True(all.Count() > 0);
            Assert.Equal("testmodel1", all.First().Title);
        }
Exemple #2
0
        public IActionResult GetCarModels(int id)
        {
            var data = _modelCarService.GetByMakeId(id);

            return(Json(data));
        }