예제 #1
0
        public async Task <ActionResult <MortgageProposal> > PostMortgageProposal(MortgageRequirementDto requirementDto)
        {
            var requirement = _mapper.Map <MortgageRequirement>(requirementDto);
            var proposal    = await _mortgageService.CreateProposal(requirement);

            var proposalDto = _mapper.Map <MortgageProposalDto>(proposal);

            return(CreatedAtAction("PostMortgageProposal", new { id = proposal.Id }, proposalDto));
        }