public IBOIdentityuserrole BOİdentityuserrole(IIdentityuserroleRepository repo) { BOIdentityuserrole boİdentityuserrole = (BOIdentityuserrole)BOİdentityuserrole(); boİdentityuserrole.Repository = repo; return(boİdentityuserrole); }
///<Summary> ///IdentityuserroleCollectionCount ///This method returns the collection count of BOIdentityuserrole objects ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 IdentityuserroleCollectionCount(IIdentityuserroleRepository iIdentityuserroleRepository) { Doing(null); try { Int32 objCount = iIdentityuserroleRepository.SelectAllCount(); return(objCount); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(-1); } }
///<Summary> ///IdentityuserroleCollection ///This method returns the collection of BOIdentityuserrole objects ///</Summary> ///<returns> ///IList[IBOIdentityuserrole] ///</returns> ///<parameters> /// ///</parameters> public static IList <IBOIdentityuserrole> IdentityuserroleCollection(IIdentityuserroleRepository iIdentityuserroleRepository) { Doing(null); try { IList <IBOIdentityuserrole> boIdentityuserroleCollection = new List <IBOIdentityuserrole>(); IList <IDAOIdentityuserrole> daoIdentityuserroleCollection = iIdentityuserroleRepository.SelectAll(); Done(null); foreach (IDAOIdentityuserrole daoIdentityuserrole in daoIdentityuserroleCollection) { boIdentityuserroleCollection.Add(new BOIdentityuserrole(daoIdentityuserrole)); } return(boIdentityuserroleCollection); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(null); } }