Example #1
0
        public IHttpActionResult GetProposalsByGroupID(Int64 groupid)
        {
            ProposalBusinessOperation businessOperation = new ProposalBusinessOperation();
            List <tbl_Proposal>       itemsOut          = null;
            BaseOutput baseOutput = businessOperation.GetProposalsByGroupID(groupid, out itemsOut);

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