예제 #1
0
        //
        // GET: /Students/
        public ActionResult Index()
        {
            var dt = DateTime.Now;
            int semester = 0, year = 0;

            Functions.GetLastSemester(dt, out semester, out year);
            var surveys = uiw.Repository <SurveyCours>().GetByStudentId(Convert.ToInt32(User.Identity.GetUserId()),
                                                                        year, semester);

            return(View(surveys));
        }