public ActionResult <IEnumerable <StudentReadDto> > GetAllStudents() { IEnumerable <Student> students = _repository.GetAllStudent(); if (students != null) { return(Ok(_mapper.Map <IEnumerable <StudentReadDto> >(students))); } return(NotFound()); }
public List <Student> GetAllStudents() { return(_studentRepo.GetAllStudent()); }
public IActionResult Index() { var model = _er.GetAllStudent(); return(View(model)); }
public async Task <IEnumerable <Student> > GetStudents() { return(await studentRepo.GetAllStudent()); }