public IViewComponentResult Invoke(int projectId) { using (var context = new NotesContext(Context, Configuration)) { var Notes = context.GetUserNotes(UserId, projectId); ViewData["Notes"] = Notes; } return(View()); }