public IEnumerable <NomenclaturePivot> GetALL() { IEnumerable <GES_Nomenclature> nomenclature = nomenclatureRepository.GetALL().ToList(); IEnumerable <NomenclaturePivot> nomenclaturePivots = Mapper.Map <IEnumerable <GES_Nomenclature>, IEnumerable <NomenclaturePivot> >(nomenclature); return(nomenclaturePivots); }