Esempio n. 1
0
        /// <summary>
        /// 编辑LevelLog
        /// </summary>
        //[AbpAuthorize(LevelLogAppPermissions.LevelLog_EditLevelLog)]
        protected virtual async Task UpdateLevelLogAsync(LevelLogEditDto input)
        {
            //TODO:更新前的逻辑判断,是否允许更新
            var entity = await _levellogRepository.GetAsync(input.Id.Value);

            input.MapTo(entity);

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