public async Task AddRelatedAsync(string addedVacancyId, Guid socCodeId) { var relatedSocLink = $"{{\"@odata.id\": \"{socEndpointConfig.GetSingleItemEndpoint(socCodeId.ToString())}\"}}"; await OdataContext.PutAsync(base.RepoEndpointConfig.GetReferenceEndpoint(addedVacancyId, "SOCCode"), relatedSocLink); }
public async Task UnlockAndPublishAsync(string addedVacancyId) { var body = $"{{\"action\": \"Publish\", \"actionParameters\": {{}} }}"; await OdataContext.PutAsync(base.RepoEndpointConfig.GetPublishEndpoint(addedVacancyId), body); }