Beispiel #1
0
        public ActionResult <List <Transfer> > GetMyTransfers()
        {
            List <Transfer> transfers      = new List <Transfer>();
            string          authorizedName = User.Identity.Name;

            try
            {
                transfers = accountDAO.GetMyTransfers(authorizedName);
            }
            catch (Exception ex)
            {
                return(NotFound($"Serverside Exception: {ex.Message}"));
            }

            return(Ok(transfers));
        }