public ActionResult <ProductionModel> Get(int id)
        {
            var item = _service.GetById(id);

            if (item == null)
            {
                return(NotFound());
            }

            return(Ok(item));
        }
Пример #2
0
        public IActionResult Get(int id)
        {
            var response = _service.GetById(id);

            return(Ok(response));
        }