예제 #1
0
        public HttpResponseMessage Post(MockActivityFilter filter)
        {
            if (filter.Limit != ExpectedLimit)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotImplemented, "error");
            }

            var result = filter.Accounts
                               .SelectMany(a => Users.ByAccountAlias[a].RecentActivity);

            return Request.CreateResponse(HttpStatusCode.OK, result);
        }
예제 #2
0
        public HttpResponseMessage Post(MockActivityFilter filter)
        {
            if (filter.Limit != ExpectedLimit)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.NotImplemented, "error"));
            }

            var result = filter.Accounts
                         .SelectMany(a => Users.ByAccountAlias[a].RecentActivity);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }