/// <summary> /// Get a list of <see cref="Note"/> objects assigned to specific user /// </summary> /// <param name="userId"></param> /// <returns></returns> public IEnumerable <Note> GetAllByAssignee(int userId) { using (var repo = new NotesRepository()) { return(repo.GetAllByAssignee(userId)); } }