// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { public class Home : PageModel { #pragma warning disable MVC1001 [ProducesResponseType(302)] public IActionResult OnPost(int id) { if (id == 0) { return NotFound(); } return Page(); } #pragma warning restore MVC1001 } } |