public List GetpathsById(List id) { long[] aa = id.ToArray(); long x; List paths = new List();
Can be simplified to avoid the error:
public List GetpathsById(List id) { return context.Presentations.Where(x => id.Contains(x.PresId)).Select(x => x.FilePath).ToList(); }