//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)); }
public bool IsWebAdmin(string UNI) { return sql.IsWebAdmin(UNI); }