You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
447 B

var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
var app = builder.Build();
// Configure the HTTP request pipeline.
app.UseHttpsRedirection();
int[] suggestedMovies = new int[]
{
122,123,123,123
};
app.MapGet("/suggestedMovies", () =>
{
var Movies = Enumerable.Range(0, suggestedMovies.Count()).Select(index =>
suggestedMovies[index])
.ToArray();
return Movies;
});
app.Run();