Have you got a using statement for System.Transactions in that file? The error's suggesting that that's the type of Transaction it thinks you want that method to return rather than an IQueryable of Budget_App.Models.Transaction, which I assume you don't?