using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { [ApiController] [Route("[controller]/[action]")] public class CodeFixAddsStatusCodesController : ControllerBase { [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesDefaultResponseType] public IActionResult GetItem(int id) { if (id == 0) { return NotFound(); } return Ok(new object()); } } } |