// GET: StudentSubjects/Create public ActionResult Create() { ViewBag.Students = new SelectList(_studentApp.GetAll(), "StudentId", "Name"); ViewBag.CourseSubjects = new SelectList(_courseSubjectApp.GetAll(), "CourseSubjectsId", "Name"); ViewBag.Grades = new SelectList(_gradeApp.GetAll(), "GradeId", "GradeValue"); return(View()); }
// GET: /<controller>/ public async Task <ActionResult> Index(PagedResultRequestDto input) { IReadOnlyList <StudentCourseReadDto> studentCourseList = (await _studentCourseAppService.GetAll(new PagedResultRequestDto { })).Items; IReadOnlyList <StudentReadDto> studentList = (await _studentAppService.GetAll(new PagedResultRequestDto { })).Items; IReadOnlyList <CourseReadDto> courseList = (await _courseAppService.GetAll(new PagedResultRequestDto { })).Items; var model = new Index(studentCourseList, studentList, courseList) { }; return(View(model)); }
public ActionResult ListAll() { ViewBag.Control = "ListAll"; ViewBag.Title = "Lista de Todos os Estudantes"; return(View("List", studentAppService.GetAll())); }
public IActionResult Index() { var stus = _studentAppService.GetAll(new PagedAndSortedResultRequestDto { MaxResultCount = 10 }).Items; var model = new StudentViewModel { Students = stus }; return(View(model)); }
// GET: Student public async Task <IActionResult> Index() { var userId = this.User.FindFirstValue(ClaimTypes.NameIdentifier); var user = _applicationUserAppService.GetById(userId); if (user == null) { return(NotFound()); } var studentsVM = _studentAppService.GetAll(user.EnvironmentId); return(View(studentsVM)); }
public IActionResult Get() { return(Response(_studentAppService.GetAll())); }
// GET: Student public ActionResult Index() { var studentViewModel = Mapper.Map <IEnumerable <Student>, IEnumerable <StudentViewModel> >(_studentApp.GetAll()); foreach (StudentViewModel item in studentViewModel) { item.Average = _studentApp.AverageStudent(item.StudentId); } return(View(studentViewModel)); }
public async Task <IEnumerable <Application.ViewModels.StudentViewModel> > Get() { return(await _studentAppService.GetAll()); }
// GET: Grades/Create public ActionResult Create() { ViewBag.StudentId = new SelectList(_studentApp.GetAll(), "Id", "Name"); ViewBag.SubjectId = new SelectList(_subjectApp.GetAll(), "Id", "Name"); return(View()); }
public IActionResult Index() { var test = _studentService.GetAll(); return(View(_studentService.GetAll())); }
public IEnumerable <StudentViewModel> Get() { return(_studentAppService.GetAll()); }
public IActionResult Index() { var students = studentAppService.GetAll(); return(View(students)); }
/// <summary> /// 展示页面 /// </summary> /// <returns></returns> public IActionResult Index() { StudentViewModel studentViewModel = _studentAppService.GetAll().FirstOrDefault(); return(View(_studentAppService.GetAll())); }
// GET: Students public ActionResult Index() { var studentViewModel = Mapper.Map <IEnumerable <Student>, IEnumerable <StudentViewModel> >(_studentApp.GetAll()); return(View(studentViewModel)); }
public IActionResult Index() { var rs = _studentAppService.GetAll(); return(View(rs)); }
// GET: /<controller>/ public IActionResult Index() { var data = _studentAppService.GetAll(); return(View(data)); }
// GET: Student public ActionResult Index() { return(View(_studentAppService.GetAll())); }
public IActionResult GetList() { var _data = _sevice.GetAll(); return(Ok(new { data = _data })); }