コード例 #1
0
        public async Task <int> SaveCostCategoryDetails(CostCategoryViewModel costCodeViewModel)
        {
            CostCategory costCategoryItem = new CostCategory
            {
                CostCategoryId       = costCodeViewModel.CostCategoryId,
                CostCategoryTitle    = costCodeViewModel.CostCategoryTitle,
                CostCategoryParentId = costCodeViewModel.CostCategoryParentId,
                CostCategoryDetails  = costCodeViewModel.CostCategoryDetails,
                isDeleted            = costCodeViewModel.isDeleted
            };
            var costCategoryObj = await _costCategoryRespository.CreateAsync(costCategoryItem);

            return(costCategoryObj.CostCategoryId);
        }
コード例 #2
0
 public Task <CostCategoryViewModel> UpdateCostCategoryDetails(CostCategoryViewModel costCodeViewModel)
 {
     throw new NotImplementedException();
 }