示例#1
0
        public IActionResult GetAll()
        {
            var mentors = _mentorRepository.GetAll();

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

            return(Ok(mentors));
        }
示例#2
0
 public IEnumerable <MentorDtl> Get()
 {
     return(_repository.GetAll());
 }
示例#3
0
 public IList <Mentor> Get()
 {
     return(_repository.GetAll());
 }