Exemple #1
0
        public IActionResult Visskemaer()
        {
            cookieValue = Request.Cookies["User"];
            if (cookieValue != null)
            {
                string[] words = cookieValue.Split("-");
                cookieEmail    = words[0];
                cookiePassword = words[1];
                cookieCheck    = store.CheckUser(cookieEmail, cookiePassword);
            }

            if (cookieCheck == true)
            {
                Models.Teacher.TeacherVisSkemaModel m = new Models.Teacher.TeacherVisSkemaModel();
                var survey = store.GetSurvey();

                m.GetSurvey = handler.GetSelectListItems(survey);
                return(View(m));
            }
            else
            {
                return(Redirect("/Home/Index/"));
            }
        }
Exemple #2
0
 public IActionResult Visskemaer(Models.Teacher.TeacherVisSkemaModel m)
 {
     // m.ElevKode = store.GetStudentCode();
     SurveySelector = m.SelectedSurvey;
     return(Redirect("/Teacher/Survey"));
 }