示例#1
0
        public async Task <ActionResult> PostLoanApplicationApplication(LoanApplication loan)
        {
            var newLoanApplication = Mapper.MapApplication(loan);

            _ = _repo.AddLoanApplicationAsync(newLoanApplication);

            await _repo.SaveAsync();

            return(CreatedAtAction("GetLoanApplication", new { id = loan.Id }, loan));
        }