示例#1
0
        public List <Group> GetGroups()
        {
            var groups = Functional.GetGroups();

            groups = Utills.GetStudentResult(groups);
            return(groups);
        }
示例#2
0
 public ActionResult Admin(string hash)
 {
     try
     {
         //new Utills(pathToConfigs).UpdateAllStudentPasswords();
         if (hash == null || hash == String.Empty)
         {
             return(View("Error"));
         }
         if (hash.Equals("1"))
         {
             var tchs = Functional.GetTeachers();
             var stns = Functional.GetStudents();
             var grps = Functional.GetGroups();
             grps = Utills.GetStudentResult(grps);
             return(View("Admin", new Data
             {
                 Students = stns,
                 Teachers = tchs,
                 Groups = grps,
             }));
         }
         else
         {
             return(View("Unauth"));
         }
     }
     catch
     {
         return(View("Error"));
     }
 }