Exemple #1
0
        public IActionResult GetPathWay(int id)
        {
            var pw = _repo.GetById(id);

            if (pw == null)
            {
                return(NotFound());
            }
            var pwDTO = _mapper.Map <PathWayDTO>(pw);

            return(Ok(pwDTO));
        }