///<Summary> ///IssueStatusCollectionFromSearchFieldsCount ///This method returns the collection count of BOIssueStatus objects, filtered by a search object ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 IssueStatusCollectionFromSearchFieldsCount(BOIssueStatus boIssueStatus) { try { DAOIssueStatus daoIssueStatus = new DAOIssueStatus(); daoIssueStatus.Id = boIssueStatus.Id; daoIssueStatus.Status = boIssueStatus.Status; Int32 objCount = DAOIssueStatus.SelectAllBySearchFieldsCount(daoIssueStatus); return(objCount); } catch { throw; } }
///<Summary> ///IssueStatusCollectionFromSearchFields ///This method returns the collection of BOIssueStatus objects, filtered by a search object ///</Summary> ///<returns> ///List<BOIssueStatus> ///</returns> ///<parameters> /// ///</parameters> public static IList <BOIssueStatus> IssueStatusCollectionFromSearchFields(BOIssueStatus boIssueStatus) { try { IList <BOIssueStatus> boIssueStatusCollection = new List <BOIssueStatus>(); DAOIssueStatus daoIssueStatus = new DAOIssueStatus(); daoIssueStatus.Id = boIssueStatus.Id; daoIssueStatus.Status = boIssueStatus.Status; IList <DAOIssueStatus> daoIssueStatusCollection = DAOIssueStatus.SelectAllBySearchFields(daoIssueStatus); foreach (DAOIssueStatus resdaoIssueStatus in daoIssueStatusCollection) { boIssueStatusCollection.Add(new BOIssueStatus(resdaoIssueStatus)); } return(boIssueStatusCollection); } catch { throw; } }