public ActionResult ListEvaluateStudent()
        {
            evaluateStudentModel         = new EvaluateStudentModel();
            evaluateStudentBusinessModel = new EvaluateStudentModel();
            classroomBusinessModel       = new ClassroomModel();
            loginBusinessModel           = new LoginModel();

            try
            {
                evaluateStudentModel.idLoginAccess = loginBusinessModel.GetIdLoginAccessWithEmail(User.Identity.Name);
                ViewBag.listClassroom = new SelectList(classroomBusinessModel.ListClassroom(evaluateStudentModel.idLoginAccess), "idClassroom", "nameClassroom");

                return(View(evaluateStudentModel));
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 2
0
        public ActionResult ListClassroom()
        {
            classroomBusinessModel = new ClassroomModel();
            classroomModel         = new ClassroomModel();
            loginBusinessModel     = new LoginModel();

            try
            {
                classroomModel.idLoginAccess      = loginBusinessModel.GetIdLoginAccessWithEmail(User.Identity.Name);
                classroomModel.listClassroomModel = classroomBusinessModel.ListClassroom(classroomModel.idLoginAccess);

                return(View(classroomModel));
            }
            catch (Exception ex)
            {
                ViewBag.MessageType = MessageType.Error;
                ViewBag.Message     = ex.Message;

                return(View());

                throw;
            }
        }