/// <summary>
        /// 编辑ActivityDeliveryInfo
        /// </summary>
        //[AbpAuthorize(ActivityDeliveryInfoAppPermissions.ActivityDeliveryInfo_EditActivityDeliveryInfo)]
        protected virtual async Task UpdateActivityDeliveryInfoAsync(ActivityDeliveryInfoEditDto input)
        {
            //TODO:更新前的逻辑判断,是否允许更新
            var entity = await _activitydeliveryinfoRepository.GetAsync(input.Id.Value);

            input.MapTo(entity);

            // ObjectMapper.Map(input, entity);
            await _activitydeliveryinfoRepository.UpdateAsync(entity);
        }
        /// <summary>
        /// 导出ActivityDeliveryInfo为excel表
        /// </summary>
        /// <returns></returns>
        //public async Task<FileDto> GetActivityDeliveryInfosToExcel(){
        //var users = await UserManager.Users.ToListAsync();
        //var userListDtos = ObjectMapper.Map<List<UserListDto>>(users);
        //await FillRoleNames(userListDtos);
        //return _userListExcelExporter.ExportToFile(userListDtos);
        //}
        /// <summary>
        /// MPA版本才会用到的方法
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <GetActivityDeliveryInfoForEditOutput> GetActivityDeliveryInfoForEdit(NullableIdDto <Guid> input)
        {
            var output = new GetActivityDeliveryInfoForEditOutput();
            ActivityDeliveryInfoEditDto activitydeliveryinfoEditDto;

            if (input.Id.HasValue)
            {
                var entity = await _activitydeliveryinfoRepository.GetAsync(input.Id.Value);

                activitydeliveryinfoEditDto = entity.MapTo <ActivityDeliveryInfoEditDto>();

                //activitydeliveryinfoEditDto = ObjectMapper.Map<List <activitydeliveryinfoEditDto>>(entity);
            }
            else
            {
                activitydeliveryinfoEditDto = new ActivityDeliveryInfoEditDto();
            }

            output.ActivityDeliveryInfo = activitydeliveryinfoEditDto;
            return(output);
        }
        /// <summary>
        /// 新增ActivityDeliveryInfo
        /// </summary>
        //[AbpAuthorize(ActivityDeliveryInfoAppPermissions.ActivityDeliveryInfo_CreateActivityDeliveryInfo)]
        protected virtual async Task <ActivityDeliveryInfoEditDto> CreateActivityDeliveryInfoAsync(ActivityDeliveryInfoEditDto input)
        {
            //TODO:新增前的逻辑判断,是否允许新增
            var entity = ObjectMapper.Map <ActivityDeliveryInfo>(input);

            entity = await _activitydeliveryinfoRepository.InsertAsync(entity);

            return(entity.MapTo <ActivityDeliveryInfoEditDto>());
        }