private async Task <ContractResult> UpdateContract(Guid id, UpdateProviderContractInput input) { var co = await Repository.Queryable() .FirstAsync(x => x.Id == id); co.InjectFrom <NullableInjection>(input); if (input.ContractorStream.HasValue) { co.ContractorStream = input.ContractorStream.Value; } if (input.ProjectManagerStream.HasValue) { co.ProjectManagerStream = input.ProjectManagerStream.Value; } if (input.AccountManagerStream.HasValue) { co.AccountManagerStream = input.AccountManagerStream.Value; } if (input.AgencyStream.HasValue) { co.AgencyStream = input.AgencyStream.Value; } co.MaxWeeklyHours = input.MaxWeeklyHours; return(await UpdateContract(co)); }
public async Task <IActionResult> UpdateContract([FromRoute] Guid organizationId, [FromRoute] Guid contractId, [FromBody] UpdateProviderContractInput model) { var contract = await _contractService .UpdateContract (_pao.Value, contractId, model); return(Ok(contract)); }
public async Task <ContractResult> UpdateContract(IProviderAgencyOwner ao, Guid contractId, UpdateProviderContractInput input) { return(await UpdateContract(contractId, input)); }
public async Task <ContractResult> UpdateContract(IOrganizationContractor co, Guid contractId, UpdateProviderContractInput input) { return(await UpdateContract(contractId, input)); }
public Task <ContractResult> UpdateContract(IOrganizationAccountManager am, Guid contractId, UpdateProviderContractInput input) { return(UpdateContract(contractId, input)); }