Example #1
0
        public IActionResult GetById(int id)
        {
            var work = _repo.GetById(id);

            if (work != null)
            {
                return(Ok(work));
            }

            return(NotFound());
        }