Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getUserRequests(statusId: number, skip: number, take: number, sort: SortDescriptor[]): Observable<GridResult> {
- private getUserRequestsUrl = environment.serviceHostName + environment.serviceAppURL + '/api/Dashboard/GetUserRequestsByStatuses';
- var headers = new Headers();
- headers.append('Content-Type', 'application/json;');
- return this.http.post(this.getUserRequestsUrl, JSON.stringify({ "Filter": { "Field": "StatusId", "Value": statusId, "Operator": "eq" },
- "Skip": skip, "Take": take, "Sort": sort }), { headers: this.headers }).share()
- .map((res: Response) => res.json())
- .map(response => (<GridResult>{
- data: response.Data ,
- total: response.Count
- }));
- }
- > [HttpGet]
- > public HttpResponseMessage GetUserRequestsByStatuses([FromBody] DataRequest model)
- > {
- > DataResponse<AngKendoGridDashboard> response = BusinessAccess.GetUserRequestsByStatuses(model);
- > return CreateHttpResponse(response);
- > }
- {"Filter":{"Field":"StatusId","Value":2,"Operator":"eq"},"Skip":0,"Take":5,"Sort":[{"field":"CreatedDate","dir":"desc"}]}
Add Comment
Please, Sign In to add comment