public IActionResult EditChangelog(int projectId, int changelog)
 {
     using (var context = new ChangelogContext(Context, Config))
     {
         ViewData["ProjectId"] = projectId;
         ViewData["Changelog"] = context.GetSpecificChangelog(changelog);
     }
     using (var context = new UsersContext(Context, Config))
         ViewData["Name"] = context.GetUsername(UserId);
     return(View());
 }
 public IViewComponentResult Invoke(int changeLogId)
 {
     using (var context = new ChangelogContext(Context, Configuration))
         ViewData["ChangelogDetails"] = context.GetSpecificChangelog(changeLogId);
     return(View());
 }