public JsonResult EditChangelog([FromBody] ChangelogEditRequest changelog) { using (var context = new ChangelogContext(Context, Config)) { context.EditChangelog(changelog); } return(Json(new object())); }
public JsonResult ConfirmChangelog([FromBody] IncomingGenerateChangelog changelog) { using (var context = new ChangelogContext(Context, Config)) { context.AssociatedChangelogItems(changelog); } return(Json(new object())); }
public IActionResult ViewChangelogsPublic(int projectId) { using (var context = new ChangelogContext(Context, Config)) { ViewData["ProjectId"] = projectId; ViewData["Changelogs"] = context.GetProjectChangelogsPublic(projectId); } return(View()); }
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 IActionResult ViewChangelogs(int projectId) { var currentUser = this.User; using (var context = new ChangelogContext(Context, Config)) { ViewData["ProjectId"] = projectId; ViewData["Changelogs"] = context.GetProjectChangelogs(projectId); } using (var context = new UsersContext(Context, Config)) ViewData["Name"] = context.GetUsername(UserId); return(View()); }
public List <OutgoingWorkItemSimple> UnassociatedChangelogItems(int projectId) { var result = new List <OutgoingWorkItemSimple>(); using (var context = new ChangelogContext(Context, Config)) { result = context.GetEmptyChangelogWorktItems(projectId).Select(y => new OutgoingWorkItemSimple { Id = y.Id, Name = string.IsNullOrEmpty(y.Title) ? "" : y.Title, WorkItemTypeName = y.WorkItemType == null ? "" : y.WorkItemType.TypeName }).ToList(); } return(result); }
public List <Changelogs> GetPublicChangelogs([FromBody] IncomingApiAuthenicationRequest request) { var result = new List <Changelogs>(); var autherizeReqiest = default(int); using (var context = new ApiKeysContext(Context, Config)) { autherizeReqiest = context.CheckApiCallCredentials(request); } if (autherizeReqiest == 0) { return(result); } using (var context = new ChangelogContext(Context, Config)) return(context.GetProjectChangelogs(autherizeReqiest)); }
public IViewComponentResult Invoke(int changeLogId) { using (var context = new ChangelogContext(Context, Configuration)) ViewData["ChangelogDetails"] = context.GetSpecificChangelog(changeLogId); return(View()); }