public static bool IsPending(UserInformationModel<User> aUser, int aGroupId) { IGroupService myClubService = new GroupService(new ModelStateWrapper(new ModelStateDictionary())); return myClubService.IsPendingApproval(aUser, aGroupId); }
public static bool IsAdmin(UserInformationModel<User> aUser, int aGroupId) { IGroupService myGroupService = new GroupService(new ModelStateWrapper(new ModelStateDictionary())); return myGroupService.IsAdmin(aUser, aGroupId); }
public static bool IsMember(UserInformationModel<User> aUser, int aGroupId) { IGroupService myClubService = new GroupService(new ModelStateWrapper(new ModelStateDictionary())); return myClubService.IsApartOfGroup(aUser, aGroupId); }