public async Task <AssetCategoryDto> CreateAssetCategoryAsync(CreateAssetCategoryInput input)
        {
            AssetCategory entity = ObjectMapper.Map <AssetCategory>(input);
            AssetCategory result = await repository.InsertAsync(entity);

            await CurrentUnitOfWork.SaveChangesAsync();

            return(ObjectMapper.Map <AssetCategoryDto>(result));
        }
示例#2
0
 public async Task <AssetCategoryDto> CreateAssetCategory([FromBody] CreateAssetCategoryInput input)
 {
     return(await assetCategoryAppService.CreateAssetCategoryAsync(input));
 }