Ejemplo n.º 1
0
        public void Test_GetAccountSummary()
        {
            AccountBLL bll = new AccountBLL(_unit);

            var summary = bll.GetAccountSummary(1039);

            string summaryString = XMLHelper.SerializeObject(summary);
        }
        public async Task <IHttpActionResult> GetAccountSummary(int accountId)
        {
            AccountSummary asummary = null;

            try
            {
                AccountBLL bll = new AccountBLL(_unit);
                asummary = bll.GetAccountSummary(accountId);
            }
            catch (Exception ex)
            {
                LogHelper.Error(_log, ex.ToString());
                return(InternalServerError(ex));
            }

            return(Ok(asummary));
        }