Because my ServiceOrder table has a number of References back to the Employee Table, I have to correct the ServiceOrderController to fix duplicates. When I attempt to Run the Project I get a bunch of the following Errors.
Code: Select all
Error 15 No overload for method 'All' takes 0 arguments c:\users\rgordey.tcw\documents\visual studio 2013\Projects\MyTestProject\WebApplication1\Models\EmployeesController.cs 45 33 WebApplication1
Code: Select all
public ViewResult Index(int? page, int? pageSize, string sortBy, bool? sortDesc , global::System.Nullable<int> OfficeId, global::System.Nullable<int> BusinessId)
{
// Defaults
if (!page.HasValue)
page = 1;
if (!pageSize.HasValue)
pageSize = 10;
IQueryable<Employee> query = repository.All(); <<== Offending Line