public static class LicenseApplicationEndpoints
{
private static EndpointsConfig _config = new EndpointsConfig();
public static void RegisterLicenseApplicationEndPoints(this IEndpointRouteBuilder routes)
{
var group = routes.MapGroup($"{_config.RoutePrefix}/licenseApplications");
group.MapGet("/forUser{userId:guid}",
([FromServices] ILicenseApplicationService service, Guid userId) =>
service.GetLicenseApplicationsForUser(userId));
}
}
public static class LicenseApplicationEndpoints
{
private static EndpointsConfig _config = new EndpointsConfig();
public static void RegisterLicenseApplicationEndPoints(this IEndpointRouteBuilder routes)
{
var group = routes.MapGroup($"{_config.RoutePrefix}/licenseApplications");
group.MapGet("/forUser{userId:guid}",
([FromServices] ILicenseApplicationService service, Guid userId) =>
service.GetLicenseApplicationsForUser(userId));
}
}