Example #1
0
        public TimetableDay[] LoadUser()
        {
            User u = new User(HttpContext.Current.User.Identity.Name);

            if (HttpContext.Current.User.IsInRole(hapConfig.Current.AD.StudentsGroup))
            {
                return(Timetables.getRecords(u.EmployeeID));
            }
            return(new TimetableDay[] { });
        }
Example #2
0
 public TimetableDay[] LoadUserByUser(string Username)
 {
     return(Timetables.getRecords(new User(Username).EmployeeID));
 }
Example #3
0
 public TimetableDay[] Load(string UPN)
 {
     return(Timetables.getRecords(UPN));
 }