/// <summary> /// GetListForGroup /// Calls [usp_selectAll_ReportCategory_for_Group] /// </summary> public static List <ReportCategory> GetListForGroup(System.Int32?reportCategoryGroupNo) { List <ReportCategoryDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.ReportCategory.GetListForGroup(reportCategoryGroupNo); if (lstDetails == null) { return(new List <ReportCategory>()); } else { List <ReportCategory> lst = new List <ReportCategory>(); foreach (ReportCategoryDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.ReportCategory obj = new Rebound.GlobalTrader.BLL.ReportCategory(); obj.ReportCategoryId = objDetails.ReportCategoryId; obj.Name = objDetails.Name; obj.ReportCategoryGroupNo = objDetails.ReportCategoryGroupNo; obj.SortOrder = objDetails.SortOrder; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
private static ReportCategory PopulateFromDBDetailsObject(ReportCategoryDetails obj) { ReportCategory objNew = new ReportCategory(); objNew.ReportCategoryId = obj.ReportCategoryId; objNew.Name = obj.Name; objNew.ReportCategoryGroupNo = obj.ReportCategoryGroupNo; objNew.SortOrder = obj.SortOrder; return(objNew); }