Example #1
0
        public IActionResult Get(int id)
        {
            // Uses the same Method GetBooks which returns all the books.but ID is used as optional Parameters.
            var AccountDetails = _customerAccountRepo.getCustomerAccount(id);

            if (AccountDetails == null)
            {
                return(NotFound());
            }
            return(Ok(AccountDetails));
        }