DRAG DROP
You are developing a WCF Data Services service in Visual Studio 2012 to display movie
information from a SQL Server database that changes every 24 hours. The service is
defined in the following class.
The application contains the following Entity Framework model.
The service must only return data for movies that are currently in theaters. You need to add
a method to the MovieService class to filter the data. How should you build the method? (To
answer, drag the appropriate code segments to the correct location or locations in the
answer area. Each code segment may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
[QueryInterceptor(“Movies”)]
public expression <func> ApplyTheaterFilter()
{
return movie => movie.IsInTheaters == true;
}