示例#1
0
        public async Task <IHttpActionResult> GetTradeReviewByPosition(int positionId)
        {
            TradeReview review = null;

            try
            {
                review = new TradeReviewBLL(_unit).GetTradeReviewByPositionId(positionId);
            }
            catch (ApplicationException appEx)
            {
                return(BadRequest(appEx.Message));
            }
            catch (Exception ex)
            {
                LogHelper.Error(_log, ex.ToString());
                return(InternalServerError(ex));
            }

            return(Ok(review));
        }
示例#2
0
        public void Test_GetTradeReviewByPositionId()
        {
            TradeReviewBLL bll = new TradeReviewBLL(_unit);

            var review = bll.GetTradeReviewByPositionId(2008);
        }