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