public async Task <ApiRequestResult> AddAsync(HomeAdvertiseDto dto)
        {
            var command = dto.EntityMap <HomeAdvertiseDto, HomeAdvertise>();
            await _homeAdvertiseRepository.AddAsync(command);

            return(ApiRequestResult.Success("添加成功"));
        }
        public async Task <ApiRequestResult> UpdateAsync(HomeAdvertiseDto dto)
        {
            var entity = await _homeAdvertiseRepository.GetAsync(dto.Id.Value);

            var newEntity = dto.EntityMap(entity);
            await _homeAdvertiseRepository.UpdateAsync(newEntity);

            return(ApiRequestResult.Success("修改成功"));
        }