MireaBackend/Endpoint/Common/Attributes/NotFoundResponseAttribute.cs

9 lines
377 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
2024-01-28 06:28:14 +03:00
using Mirea.Api.Endpoint.Models;
using System;
namespace Mirea.Api.Endpoint.Common.Extensions;
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
public class NotFoundResponseAttribute() : ProducesResponseTypeAttribute(typeof(ErrorResponseVm), StatusCodes.Status404NotFound);