public ReturnListModel <StudentInfo> Get(StudentSearch searchModel) { //ReturnListModel<StudentInfo> returnList = new ReturnListModel<StudentInfo>(); StudentBL studentBL = new StudentBL(); //returnList.Items = studentBL.GetAll(searchModel); //returnList.Total = returnList.Items == null ? 0 : returnList.Items.Count(); return(new ReturnListModel <StudentInfo>(studentBL.GetAll(searchModel))); }
public ActionResult students(string search) { if (search != null) { return(View(StudentBL.GetByStudentEductionalNumber(search))); } else { return(View(StudentBL.GetAll())); } }
public ActionResult allstudents() { return(View(StudentBL.GetAll())); }