예제 #1
0
        public async Task <IActionResult> GenerateProposal([FromRoute] Guid organizationId, [FromRoute] Guid projectId, [FromBody] ProposalOptions input)
        {
            var p = await _proposalService
                    .Create(_accountManager, projectId, input);

            return(Ok(p));
        }
예제 #2
0
        public async Task <IActionResult> Create([FromRoute] Guid organizationId, [FromRoute] Guid projectId,
                                                 [FromBody] ProposalOptions model
                                                 )
        {
            var p = await _proposalService
                    .Create(_agencyOwner, projectId, model);

            return(Ok(p));
        }