Example #1
0
        public IHttpActionResult GetProposalWithDetailsByID(Int64 id)
        {
            ProposalBusinessOperation businessOperation = new ProposalBusinessOperation();
            Proposal   itemOut = null;
            BaseOutput dbitem  = businessOperation.GetProposalByID(id, out itemOut);

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