Select from following answers:- Add the WebGetAttribute to the method.

- Implement a custom method named GetOrdersByCity.
- Implemented method GetOrdersByCity that has a city parameter and returns an IQueryable<Order>.
- All Above
The service operation method must be an instance method that returns a result set as an IEnumerable or IQueryable. In order to support query options such as sorting, paging, and filtering, service operation methods should return IQueryable. Requests to service operations that include query options are rejected for operations that return only IEnumerable.
The method must be annotated with the [WebGet] or [WebInvoke] attribute. [WebGet] enables the method to be invoked by using a GET request. [WebInvoke] enables the method to be invoked by using a POST request.
Show Correct Answer
Source: MeasureUp.Com | Asked In: Many Interviews |
Alert Moderator