public async Task Add(AdvertDto advertDto) { await _iAdvertRepository.Add(AdvertMapper.MapDtoToAdvert(advertDto)); }
public async Task Update(AdvertDto entity) { await _iAdvertRepository.Update(AdvertMapper.MapDtoToAdvert(entity)); }
public async Task <AdvertDto> GetById(long id) { var advert = await _iAdvertRepository.GetById(id); return(AdvertMapper.MapAdvertToDto(advert)); }