Beispiel #1
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'BestController.Get()'
        public Dictionary <string, string> Get()
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'BestController.Get()'
        {
            return(new Dictionary <string, string> {
                { "ID", best.GetEntry(null, image).Id.ToString() },
                { "Points", best.GetEntry(null, image).Points.ToString() },
                { "Author", best.GetEntry(null, image).Author },
                { "Date uploaded", best.GetEntry(null, image).Date },
                { "Link", best.GetEntry(null, image).Uri }
            });
        }
Beispiel #2
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'BestModel.OnGet()'
        public IActionResult OnGet()
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'BestModel.OnGet()'
        {
            Image = best.GetEntry(null, Image);
            return(Page());
        }