Beispiel #1
0
        public IHttpActionResult Get(int UserAccountNumber)
        {
            SavingsAcctService savingsAcctService = CreateSavingsAcctService();
            var savingsAcct = savingsAcctService.GetSavingsAcctByAcctNumber(UserAccountNumber);

            return(Ok(savingsAcct));
        }
Beispiel #2
0
        private SavingsAcctService CreateSavingsAcctService()
        {
            var userId             = Guid.Parse(User.Identity.GetUserId());
            var savingsAcctService = new SavingsAcctService(userId);

            return(savingsAcctService);
        }
Beispiel #3
0
        public IHttpActionResult Get()
        {
            SavingsAcctService savingsAcctService = CreateSavingsAcctService();
            var savingsAcct = savingsAcctService.GetSavingsAcct();

            return(Ok(savingsAcct));
        }