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); }
public Task <CostCodeViewModel> UpdateCostCodeDetails(CostCodeViewModel costCodeViewModel) { throw new NotImplementedException(); }