Beispiel #1
0
        /// <summary>
        /// 编辑培训重点
        /// </summary>
        // [AbpAuthorize(T_KPointAppPermissions.T_KPoint_EditT_KPoint)]
        public virtual async Task UpdateT_KPointAsync(T_KPointEditDto input)
        {
            //TODO:更新前的逻辑判断,是否允许更新

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

            input.MapTo(entity);

            await _t_KPointRepository.UpdateAsync(entity);
        }
Beispiel #2
0
        /// <summary>
        /// 新增培训重点
        /// </summary>
        // [AbpAuthorize(T_KPointAppPermissions.T_KPoint_CreateT_KPoint)]
        public virtual async Task <T_KPointEditDto> CreateT_KPointAsync(T_KPointEditDto input)
        {
            //TODO:新增前的逻辑判断,是否允许新增

            var entity = input.MapTo <T_KPoint>();

            entity = await _t_KPointRepository.InsertAsync(entity);

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