///<Summary> ///IssuetypeCollectionFromSearchFieldsCount ///This method returns the collection count of BOIssuetype objects, filtered by a search object ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 IssuetypeCollectionFromSearchFieldsCount(BOIssuetype boIssuetype) { try { DAOIssuetype daoIssuetype = new DAOIssuetype(); daoIssuetype.Id = boIssuetype.Id; daoIssuetype.Name = boIssuetype.Name; Int32 objCount = DAOIssuetype.SelectAllBySearchFieldsCount(daoIssuetype); return(objCount); } catch { throw; } }
///<Summary> ///IssuetypeCollectionFromSearchFields ///This method returns the collection of BOIssuetype objects, filtered by a search object ///</Summary> ///<returns> ///List<BOIssuetype> ///</returns> ///<parameters> /// ///</parameters> public static IList <BOIssuetype> IssuetypeCollectionFromSearchFields(BOIssuetype boIssuetype) { try { IList <BOIssuetype> boIssuetypeCollection = new List <BOIssuetype>(); DAOIssuetype daoIssuetype = new DAOIssuetype(); daoIssuetype.Id = boIssuetype.Id; daoIssuetype.Name = boIssuetype.Name; IList <DAOIssuetype> daoIssuetypeCollection = DAOIssuetype.SelectAllBySearchFields(daoIssuetype); foreach (DAOIssuetype resdaoIssuetype in daoIssuetypeCollection) { boIssuetypeCollection.Add(new BOIssuetype(resdaoIssuetype)); } return(boIssuetypeCollection); } catch { throw; } }