I have a following line of code:
var availableClients = (Controller.ListClientsForCurrentUser() as DataTable).AsEnumerable();
and I want to
Are you missing
using System.Linq;
by any chance? Once you've got an EnumerableRowCollection it should be fine. (The main problem using a DataTable if if you forget to call AsEnumerable, but that isn't a problem here.)
EnumerableRowCollection
DataTable
AsEnumerable