Пример #1
0
        public async Task <IActionResult> ProductsByIds([FromBody] IDsViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = await _generalService.AllProductsByIds(model);

            return(new OkObjectResult(result));
        }