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)); }
public void Test_GetTradeReviewByPositionId() { TradeReviewBLL bll = new TradeReviewBLL(_unit); var review = bll.GetTradeReviewByPositionId(2008); }