public IActionResult GetAll() { var mentors = _mentorRepository.GetAll(); if (mentors == null) { return(NotFound()); } return(Ok(mentors)); }
public IEnumerable <MentorDtl> Get() { return(_repository.GetAll()); }
public IList <Mentor> Get() { return(_repository.GetAll()); }