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); }
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)); }