Exemple #1
0
        public IActionResult GetPathWayAroundUniversity(int university_id)
        {
            var pwList = _repo.GetPathWayAroundUniversity(university_id);

            if (pwList == null)
            {
                return(NotFound());
            }
            var pwDTO = new List <PathWayDTO>();

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