MireaBackend/Endpoint/Common/Extensions/BadRequestResponseAttribute.cs

8 lines
348 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Http;
using System;
using Microsoft.AspNetCore.Mvc;
namespace Mirea.Api.Endpoint.Common.Extensions;
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
public class BadRequestResponseAttribute() : ProducesResponseTypeAttribute(typeof(ErrorResponseVm), StatusCodes.Status400BadRequest);