public static List<Nullable<long>> getFreundesvorschlaege(Int64 currentUser) { using (DBEntities dbConnection = new DBEntities()) { List<Nullable<Int64>> foundSuggestions = new List<Nullable<long>>(); foreach (var a in dbConnection.Freundvorschlag(currentUser)) { foundSuggestions.Add(a); } return foundSuggestions; } }