示例#1
0
        public ResponseContext Get(Dictionary <string, object> param)
        {
            RequestContext request = (RequestContext)param["request"];
            MtcgClient     client  = (MtcgClient)param["client"];

            if (!request.QueryParams.ContainsKey("username"))
            {
                return(new ResponseContext(request, _marketController.GetAllOpenTradingDeals()));
            }

            return(new ResponseContext(request, _marketController.GetOpenTradingDealsForUser(request.QueryParams["username"])));
        }