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)); }
public async Task <AssetCategoryDto> CreateAssetCategory([FromBody] CreateAssetCategoryInput input) { return(await assetCategoryAppService.CreateAssetCategoryAsync(input)); }