public static bool CanAdd() { bool IsEnabled = false; if (License.PortfolioCount >= 0) { DataTable dt = DBProjectGroup.GetProjectGroupsDT(Security.CurrentUser.TimeZoneId); IsEnabled = (dt.Rows.Count < License.PortfolioCount); } else { IsEnabled = true; } return(CanUpdate() && IsEnabled); }
public static DataTable GetProjectGroupsDT() { return(DBProjectGroup.GetProjectGroupsDT(User.DefaultTimeZoneId)); }