public async Task <IActionResult> GetMarketingAgreement([FromRoute] Guid organizationId, [FromRoute] Guid marketingOrganizationId) { var agreements = await _marketingService.GetAgreement <AgencyOwnerMarketingAgreementOutput>(_providerAgencyOwner, marketingOrganizationId); return(Ok(agreements)); }
public async Task <IActionResult> GetProviderAgreement([FromRoute] Guid organizationId, [FromRoute] Guid providerOrganizationId) { var result = await _agreementService .GetAgreement <AgencyOwnerMarketingAgreementOutput>(_marketingAgencyOwner, providerOrganizationId); return(Ok(result)); }