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 <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));
        }