Пример #1
0
        public IActionResult Get(int id)
        {
            var data = _repo.GetProductGroupById(id);

            return((data == null) ? (IActionResult)BadRequest($"can not find category by id={id}")
                                  : Ok(data));
        }