public ActionResult EditEvaluation(Guid id)
        {
            EvaluationModels model;

            using (EvaluationRepository repository = new EvaluationRepository())
            {
                Evaluations             x        = repository.GetEvaluationById(id);
                IQueryable <Periods>    periodes = repository.GetPeriodes();
                IQueryable <Classrooms> classes  = repository.GetClasses();
                IQueryable <Users>      users    = repository.GetUsers();
                if (x == null)
                {
                    return(HttpNotFound());
                }
                model = new EvaluationModels
                {
                    mode        = 0,
                    id          = x.Id,
                    classroomId = x.Classroom_Id,
                    userId      = x.User_Id,
                    periodId    = x.Period_Id,
                    date        = x.Date,
                    totalPoint  = x.TotalPoint,
                    periodes    = getListPeriodes(periodes),
                    classes     = getListClasses(classes),
                    users       = getListUsers(users)
                };
            }
            return(View("CreateEvaluation", model));
        }
        // GET: /Eval/CreateEvaluation
        public ActionResult CreateEvaluation(Guid?classroom, Guid?periode, Guid?user)
        {
            EvaluationModels model;

            using (EvaluationRepository repository = new EvaluationRepository())
            {
                IQueryable <Periods>    periodes = repository.GetPeriodes();
                IQueryable <Classrooms> classes  = repository.GetClasses();
                IQueryable <Users>      users    = repository.GetUsers();
                model = new EvaluationModels
                {
                    mode     = -1,
                    periodes = getListPeriodes(periodes),
                    classes  = getListClasses(classes),
                    users    = getListUsers(users)
                };
                if (classroom != null)
                {
                    model.classroomId = (Guid)classroom;
                }
                if (periode != null)
                {
                    model.periodId = (Guid)periode;
                }
                if (user != null)
                {
                    model.userId = (Guid)user;
                }
            }
            return(View(model));
        }