private void Populate(DataRow dr) { this.UserGroupId = Convert.ToInt32(dr[cn_fUserGroupId].ToString()); this.UserGroupCode = dr[cn_fUserGroupCode].ToString(); this.UserGroupName = dr[cn_fUserGroupName].ToString(); this.UserGroupPermissions = UserGroupPermissions.GetUserGroupPermissions(miLoggedUserId, this.UserGroupId, true); this.UserGroupMenu = UserGroupMenuItems.List(miLoggedUserId, this.UserGroupId); // Reset the state to unchanged this.SetEntityState(EntityStateType.Unchanged); }
public static UserGroupMenuItems List(int iLoggedUserId, int iUserGroupId) { mGroupMenuInstance = new UserGroupMenuItems(iLoggedUserId, iUserGroupId); Load(iUserGroupId); return(mGroupMenuInstance); }