public IHttpActionResult GetFacultyModel(int id)
        {
            var result = _facultyService.GetFacultiesByUniversityId(id);

            if (result == null)
            {
                return(NotFound());
            }

            return(Ok(result));
        }
Example #2
0
 public IEnumerable <FacultyDTO> GetFacultiesByUniversityId(int UniversityId)
 {
     return(_facultyService.GetFacultiesByUniversityId(UniversityId));
 }