Exemplo n.º 1
0
        public ActionResult Detail(string userName)
        {
            UserBusinessOperation businessOperation = new UserBusinessOperation();
            UserAccountingDTO     itemOut           = null;
            BaseOutput            dbitem            = businessOperation.GetUserAccountingInfo(userName, out itemOut);

            return(View(itemOut));
        }
Exemplo n.º 2
0
        public IHttpActionResult GetUserAccountingInfo(string userName)
        {
            UserBusinessOperation businessOperation = new UserBusinessOperation();
            UserAccountingDTO     itemOut           = null;
            BaseOutput            dbitem            = businessOperation.GetUserAccountingInfo(userName, out itemOut);

            if (dbitem.ResultCode == 1)
            {
                return(Ok(itemOut));
            }
            else
            {
                return(Content(HttpStatusCode.BadRequest, dbitem));
            }
        }