//get the details for a build
        public Build Get(string identifier)
        {
            ResolveBuildService();

            var build = buildService.GetBuild(identifier);

            if (build == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }

            return(build);
        }
Beispiel #2
0
        public IActionResult OnGet(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            ThisProduct = productService.GetProduct(id.Value);
            Builds      = buildService.GetBuild(new BuildFetchingFilter()
            {
                ProductId = id
            });

            return(Page());
        }
        public IActionResult OnGet(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Reports = reportService.GetReport(new ReportFetchingFilter()
            {
                RequiredBuildId = id
            });

            CurrentBuild = buildService.GetBuild(CurrentBuildId);

            CurrentProduct = productService.GetProduct(CurrentBuild.ProductId);

            return(Page());
        }
        public IActionResult OnGet(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Report   = reportService.GetReport(id.Value);
            Comments = commentService.GetComment(new CommentFetchingFilter()
            {
                ReportId = Report.Id
            });

            if (Report == null)
            {
                return(NotFound());
            }

            CurrentBuild   = buildService.GetBuild(Report.BuildId);
            CurrentProduct = productService.GetProduct(CurrentBuild.ProductId);
            return(Page());
        }