public IActionResult GetById(int id) { var work = _repo.GetById(id); if (work != null) { return(Ok(work)); } return(NotFound()); }