Esempio n. 1
0
 public static void MapDelete <TCommand>(this IEndpointRouteBuilder endpoints, string pattern, string group = null, CommandEndpointResponse response = null, OpenApiOperation openApi = null)
     where TCommand : ICommand
 {
     endpoints.Map <TCommand>(
         pattern,
         HttpMethod.Delete,
         group,
         response ?? new CommandEndpointResponse(null, HttpStatusCode.OK),
         openApi);
 }
Esempio n. 2
0
 public static void MapGet <TQuery>(this IEndpointRouteBuilder endpoints, string pattern, string group = null, CommandEndpointResponse response = null, OpenApiOperation openApi = null)
     where TQuery : IQuery
 {
     endpoints.Map <TQuery>(
         pattern,
         HttpMethod.Get,
         group,
         response ?? new CommandEndpointResponse(null, HttpStatusCode.OK),
         openApi);
 }