Now using global static usings on endpoints to reduce boilerplate

This commit is contained in:
2026-10-05 08:33:00 +02:00
parent 34ddfc1d73
commit da2c0f9a34
116 changed files with 15 additions and 118 deletions
@@ -1,5 +1,12 @@
namespace PostFundManagement.Api.Endpoints.Users;
using PostFundManagement.Domain.Abstractions;
public class CreateUserEndpoint
namespace PostFundManagement.Api.Endpoints.Users;
[ApiVersionTarget(1)]
public sealed class CreateUserEndpoint : IEndpoint
{
public void Map(IEndpointRouteBuilder builder)
{
throw new NotImplementedException();
}
}
@@ -4,7 +4,6 @@ using PostFundManagement.Domain.Abstractions;
using PostFundManagement.Domain.Errors;
using PostFundManagement.Domain.Extensions;
using PostFundManagement.Domain.Models;
using Problems = Microsoft.AspNetCore.Mvc.ProblemDetails;
namespace PostFundManagement.Api.Endpoints.Users;
@@ -5,7 +5,6 @@ using PostFundManagement.Domain;
using PostFundManagement.Domain.Abstractions;
using PostFundManagement.Domain.Extensions;
using PostFundManagement.Domain.Models;
using Problems = Microsoft.AspNetCore.Mvc.ProblemDetails;
namespace PostFundManagement.Api.Endpoints.Users;
@@ -3,7 +3,6 @@ using PostFundManagement.Application.Extensions;
using PostFundManagement.Domain.Abstractions;
using PostFundManagement.Domain.Errors;
using PostFundManagement.Domain.Extensions;
using Problems = Microsoft.AspNetCore.Mvc.ProblemDetails;
namespace PostFundManagement.Api.Endpoints.Users;
@@ -4,7 +4,6 @@ using PostFundManagement.Domain;
using PostFundManagement.Domain.Abstractions;
using PostFundManagement.Domain.Errors;
using PostFundManagement.Domain.Extensions;
using Problems = Microsoft.AspNetCore.Mvc.ProblemDetails;
namespace PostFundManagement.Api.Endpoints.Users;