Example #1
0
        /// <summary>
        /// 编辑WithDrawa
        /// </summary>
        protected virtual async Task UpdateWithDrawaAsync(WithDrawaEditDto input)
        {
            //TODO:更新前的逻辑判断,是否允许更新
            var entity = await _withdrawaRepository.GetAsync(input.Id.Value);

            input.MapTo(entity);

            // ObjectMapper.Map(input, entity);
            await _withdrawaRepository.UpdateAsync(entity);
        }