Ejemplo n.º 1
0
        /// <summary>
        /// 更新分类实体
        /// </summary>
        /// <returns></returns>
        public async Task UpdateCategoryAsync(ModifiyCategoryDto modifiyCategoryDto)
        {
            var model = Map <ModifiyCategoryDto, Category>(modifiyCategoryDto);
            await CategoryRespository.UpdateAsync(model);

            await CategoryRespository.UnitOfWork.SaveChangesAsync();
        }
Ejemplo n.º 2
0
        public async Task <ApiResult> UpdateCategory(ModifiyCategoryDto modifiyCategory)
        {
            await cdyportService.UpdateCategoryAsync(modifiyCategory);

            return(ApiResult.Success);
        }