예제 #1
0
        public async Task <int> SaveCostCodeDetails(CostCodeViewModel costCodeViewModel)
        {
            CostCode costCodeItem = new CostCode
            {
                CostCodeId            = costCodeViewModel.CostCodeId,
                CostCodeTitle         = costCodeViewModel.CostCodeTitle ?? string.Empty,
                CostCategoryId        = costCodeViewModel.CostCategoryId,
                CodeSubCodeId         = costCodeViewModel.CodeSubCodeId,
                IsCostCodeActive      = costCodeViewModel.IsCostCodeActive,
                IsTimeClockLabourCode = costCodeViewModel.IsTimeClockLabourCode,
                CostCodeDetails       = costCodeViewModel.CostCodeDetails ?? string.Empty,
                DefaultLabourCode     = costCodeViewModel.DefaultLabourCode
            };
            var costCategoryObj = await _costCodeCategoryRespository.CreateAsync(costCodeItem);

            return(costCategoryObj.CostCategoryId);
        }
예제 #2
0
 public Task <CostCodeViewModel> UpdateCostCodeDetails(CostCodeViewModel costCodeViewModel)
 {
     throw new NotImplementedException();
 }