public ClientesDto Add(ClientesDto model) { ClientesEntity clienteEntity = null; IMapper iMapper = ServiceConfigAutomapper.configEscribir.CreateMapper(); clienteEntity = iMapper.Map <ClientesDto, ClientesEntity>(model); try { clienteRepository.Add(clienteEntity); } catch (VuelingException ex) { throw ex; } return(model); }