コード例 #1
0
        public IHttpActionResult GetProposalWithDetailsByProviderUserName(string username)
        {
            ProposalBusinessOperation businessOperation = new ProposalBusinessOperation();
            List <Proposal>           itemsOut          = null;
            BaseOutput dbitem = businessOperation.GetProposalWithDetailsByProviderUserName(username, out itemsOut);

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