public async Task <IActionResult> GetProposal([FromRoute] Guid organizationId, [FromRoute] Guid proposalId) { var p = await _proposalService.GetProposal <AccountManagerFixedPriceProposalDetailsOutput>(_accountManager, proposalId); return(Ok(p)); }
public async Task <IActionResult> GetProposal([FromRoute] Guid organizationId, [FromRoute] Guid proposalId) { var p = await _proposalService.GetProposal <AgencyOwnerFixedPriceProposalDetailsOutput> ((IProviderAgencyOwner)_agencyOwner, proposalId); return(Ok(p)); }
public async Task <IActionResult> Detail(string id) { FixedPriceProposalDetailOutput fixedPriceProposalDetailOutput = null; if (ModelState.IsValid) { Guid.TryParse(id, out Guid ProposalGuid); fixedPriceProposalDetailOutput = await _proposalService.GetProposal <FixedPriceProposalDetailOutput>(ProposalGuid); } if (fixedPriceProposalDetailOutput == null) { throw new ApplicationException("Proposal Not Found"); } return(View(fixedPriceProposalDetailOutput)); }