protected virtual async Task UpdateMeetingMaterialAsync(MeetingMaterialEditDto input)
        {
            //TODO:更新前的逻辑判断,是否允许更新

            var entity = await _meetingmaterialRepository.GetAsync(input.Id.Value);

            input.MapTo(entity);

            // ObjectMapper.Map(input, entity);
            await _meetingmaterialRepository.UpdateAsync(entity);
        }
        /// <summary>
        /// MPA版本才会用到的方法
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <GetMeetingMaterialForEditOutput> GetMeetingMaterialForEdit(NullableIdDto <Guid> input)
        {
            var output = new GetMeetingMaterialForEditOutput();
            MeetingMaterialEditDto meetingmaterialEditDto;

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

                meetingmaterialEditDto = entity.MapTo <MeetingMaterialEditDto>();

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

            output.MeetingMaterial = meetingmaterialEditDto;
            return(output);
        }
        protected virtual async Task <MeetingMaterialEditDto> CreateMeetingMaterialAsync(MeetingMaterialEditDto input)
        {
            //TODO:新增前的逻辑判断,是否允许新增

            var entity = ObjectMapper.Map <MeetingMaterial>(input);

            entity = await _meetingmaterialRepository.InsertAsync(entity);

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