/// <summary> /// 更新分类实体 /// </summary> /// <returns></returns> public async Task UpdateCategoryAsync(ModifiyCategoryDto modifiyCategoryDto) { var model = Map <ModifiyCategoryDto, Category>(modifiyCategoryDto); await CategoryRespository.UpdateAsync(model); await CategoryRespository.UnitOfWork.SaveChangesAsync(); }
public async Task <ApiResult> UpdateCategory(ModifiyCategoryDto modifiyCategory) { await cdyportService.UpdateCategoryAsync(modifiyCategory); return(ApiResult.Success); }