Ejemplo n.º 1
0
        //makes a object with all the info for the basic layout
        public Models.Layout GetLayoutInfo(string UNI, Dal.AD ad, Dal.SQL sql)
        {
            Models.Person       person    = ad.GetUserInfo(UNI);
            string              name      = person.Name;
            bool                admin     = person.Admin;
            bool                webAdmin  = sql.IsWebAdmin(UNI);
            List <Models.Group> groupList = sql.GetGroupListForUser(UNI);

            return(new Models.Layout(groupList, name, admin, webAdmin));
        }
Ejemplo n.º 2
0
 public bool IsWebAdmin(string UNI)
 {
     return sql.IsWebAdmin(UNI);
 }