public static ReportSubcategory GetReportSubcategory(LoginUser loginUser, int reportSubcategoryID) { ReportSubcategories reportSubcategories = new ReportSubcategories(loginUser); reportSubcategories.LoadByReportSubcategoryID(reportSubcategoryID); if (reportSubcategories.IsEmpty) { return(null); } else { return(reportSubcategories[0]); } }
public ReportSubcategory(DataRow row, ReportSubcategories reportSubcategories) : base(row, reportSubcategories) { _reportSubcategories = reportSubcategories; }