Exemple #1
0
        public async Task <IEnumerable <TelephoneDto> > UpdateAsync(IEnumerable <TelephoneDto> telephones, int idClient)
        {
            var entity   = _mapper.Map <IEnumerable <Telephone> >(telephones);
            var response = await _telephoneRepository.UpdateAsync(entity, idClient);

            return(_mapper.Map <IEnumerable <TelephoneDto> >(response));
        }