Пример #1
0
        public async Task <JobBudgetUnitDto> CreateJobBudgetUnit(CreateJobBudgetUnitInput input)
        {
            var jobBudgetUnit = new JobBudgetUnit(jobid: input.JobId, description: input.Description, typeofbudgetid: input.TypeofBudgetId,
                                                  typeofbudgetsoftwareid: input.TypeofBudgetSoftwareId, organizationunitid: input.OrganizationUnitId);
            await _jobBudgetUnitManager.CreateAsync(jobBudgetUnit);

            await CurrentUnitOfWork.SaveChangesAsync();

            return(jobBudgetUnit.MapTo <JobBudgetUnitDto>());
        }
Пример #2
0
 public virtual async Task UpdateAsync(JobBudgetUnit jobBudgetUnit)
 {
     await JobBudgetUnitRepository.UpdateAsync(jobBudgetUnit);
 }
Пример #3
0
 public virtual async Task CreateAsync(JobBudgetUnit jobBudgetUnit)
 {
     await JobBudgetUnitRepository.InsertAsync(jobBudgetUnit);
 }