예제 #1
0
        public IActionResult GetPathWays()
        {
            var list    = _repo.GetAll();
            var listDTO = new List <PathWayDTO>();

            foreach (var pw in list)
            {
                listDTO.Add(_mapper.Map <PathWayDTO>(pw));
            }
            return(Ok(listDTO));
        }