Exemple #1
0
        public ActionResult <int?> GetDefaultAccountIdForUserId(int userId)
        {
            int?result = accountDao.GetDefaultAccountIdForUserId(userId);

            if (result == null)
            {
                return(StatusCode(500, "No default account found."));
            }
            else
            {
                return(Ok(result));
            }
        }