Ejemplo n.º 1
0
        public async Task <IHttpActionResult> GetProposal(Guid id)
        {
            Proposal proposal = await _proposalService.GetProposalAsync(id);

            if (proposal == null)
            {
                return(NotFound());
            }
            var dtoProposal = Mapper.Map <ProposalDTO>(proposal);

            return(Ok(dtoProposal));
        }