Exemplo n.º 1
0
        public IActionResult Get(int id)
        {
            Loan loan = loanManager.Get(id);

            if (loan == null)
            {
                return(NotFound("Loan couldn't be found"));
            }
            return(Ok(loan));
        }