Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. protected IDictionary<int, int> GetNotesStatistics(List<string> userName)
  2. {
  3.         MyNotesManager myNotesManager = new MyNotesManager();
  4.         myNotesManager.ReadMyNotesFromCache = false;
  5.    
  6.         List<MyNotesItem> notes = myNotesManager.GetAllMyNotes();
  7.    
  8.     notes = notes.where(    // hämta bara de anteckningar som har användare i listan userName
  9.                 // typ ngt sånt här: notes = notes.Where(p => p.UserId in userName);
  10.     return notes;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement