///<Summary> ///SuppliersCollectionFromCriteria ///This method returns the collection of projections, ordered and filtered by optional criteria ///</Summary> ///<returns> ///IList<IBOSuppliers> ///</returns> ///<parameters> ///ICriteria icriteria ///</parameters> public virtual IDictionary <string, IList <object> > Projections(object o) { Doing(this); try { ICriteria icriteria = (ICriteria)o; IList <IDataProjection> lstDataProjection = (icriteria == null) ? null : icriteria.ListDataProjection(); IList <IDataCriterion> lstDataCriteria = (icriteria == null) ? null : icriteria.ListDataCriteria(); IList <IDataOrderBy> lstDataOrder = (icriteria == null) ? null : icriteria.ListDataOrder(); IDataSkip dataSkip = (icriteria == null) ? null : icriteria.DataSkip(); IDataTake dataTake = (icriteria == null) ? null : icriteria.DataTake(); return(_iSuppliersRepository.SelectAllByCriteriaProjection(lstDataProjection, lstDataCriteria, lstDataOrder, dataSkip, dataTake)); } catch (Exception ex) { Failed(this, ex); Handle(this, ex); return(null); } }