Exemplo n.º 1
0
 // 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());
 }
Exemplo n.º 2
0
        // 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));
        }
Exemplo n.º 3
0
        public ActionResult ListAll()
        {
            ViewBag.Control = "ListAll";
            ViewBag.Title   = "Lista de Todos os Estudantes";

            return(View("List", studentAppService.GetAll()));
        }
Exemplo n.º 4
0
        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));
        }
Exemplo n.º 6
0
 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));
        }
Exemplo n.º 8
0
 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());
 }
Exemplo n.º 10
0
        public IActionResult Index()
        {
            var test = _studentService.GetAll();

            return(View(_studentService.GetAll()));
        }
 public IEnumerable <StudentViewModel> Get()
 {
     return(_studentAppService.GetAll());
 }
Exemplo n.º 12
0
        public IActionResult Index()
        {
            var students = studentAppService.GetAll();

            return(View(students));
        }
Exemplo n.º 13
0
        /// <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));
        }
Exemplo n.º 15
0
        public IActionResult Index()
        {
            var rs = _studentAppService.GetAll();

            return(View(rs));
        }
Exemplo n.º 16
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            var data = _studentAppService.GetAll();

            return(View(data));
        }
Exemplo n.º 17
0
 // GET: Student
 public ActionResult Index()
 {
     return(View(_studentAppService.GetAll()));
 }
Exemplo n.º 18
0
        public IActionResult GetList()
        {
            var _data = _sevice.GetAll();

            return(Ok(new { data = _data }));
        }