public async Task <IActionResult> Index() { studentRepo = new StudentRepo(); //get all data var getalldata = studentRepo.GetAll(); //get single data var singledata = await studentRepo.Get(1); return(View()); }
public IActionResult Get() { return(Ok(Repo.GetAll())); }
public StudentData Get([FromQuery] FilteringCriteria pagingParam) { var result = _studentRepo.GetAll(pagingParam.PageNumber, pagingParam.PageSize, pagingParam.name); return(result); }
public IActionResult Index() { return(View(studentService.GetAll())); }