Example #1
0
 public async Task <ActionResult <List <CarModelDto> > > Search([FromQuery] string name, [FromQuery] Guid?brandId, [FromQuery] Guid?categoryId)
 {
     try
     {
         return(await _carModelService.Search(new CarModelSearch { Name = name, BrandId = brandId, CategoryId = categoryId }));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }