Beispiel #1
0
 public ActionResult Index()
 {
     ViewBag.Students        = _studentService.GetAll();
     ViewBag.LearningClasses = _learningClassService.GetAll();
     ViewBag.Companies       = _companyService.GetAll();
     ViewBag.TrainingMajors  = _trainingMajorService.GetAll();
     return(View());
 }
        public ActionResult LearningClasses_Read([DataSourceRequest] DataSourceRequest request)
        {
            DataSourceResult result = _learningClassService.GetAll().ToDataSourceResult(request, learningClass => new
            {
                learningClass.Id,
                learningClass.ClassName,
                learningClass.SubjectId,
                learningClass.SemesterId
            });

            return(Json(result));
        }
Beispiel #3
0
 public ActionResult Index()
 {
     ViewBag.StudentClasses  = _studentClassService.GetAll();
     ViewBag.LearningClasses = _learningClassService.GetAll();
     return(View());
 }