public IEnumerable <TolerancePivot> Tolerances(string identifged) { IEnumerable <GES_Tolerance> motif = toleranceRepository.GetItemsByModelLibelle(identifged).ToList(); IEnumerable <TolerancePivot> motifsPivots = Mapper.Map <IEnumerable <GES_Tolerance>, IEnumerable <TolerancePivot> >(motif); return(motifsPivots); }
public IEnumerable <TolerancePivot> GetTolerancesByName(string identifged) { IEnumerable <GES_Tolerance> tolerances = toleranceRepository.GetItemsByModelLibelle(identifged).ToList(); IEnumerable <TolerancePivot> tolerancesPivots = Mapper.Map <IEnumerable <GES_Tolerance>, IEnumerable <TolerancePivot> >(tolerances); return(tolerancesPivots); }