Initial transfer of larger repo from git. IF full history and branches are needed must go to github at https://github.com/DulcisL/CCUCoding.git

This commit is contained in:
dolcel committed 2026-10-20 23:59:02 +00:00
commit c09ce40be0
4048 files changed
+603256

No files matched your search

@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace JSPromises.Controllers
{
[ApiController]
[Route("decorations")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
private readonly ILogger<WeatherForecastController> _logger;
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}
[HttpGet("bgcolor/{choice}")]
public string GetBGColor(string choice)
{
Task.Delay(3000).Wait();
if (choice.Equals("a")){
return "blue";
}
else{
return "green";
}
}
[HttpGet("border/{choice}")]
public string GetBorder(string choice)
{
Task.Delay(3000).Wait();
if (choice.Equals("a")){
return "thick dashed red";
}
else{
return "thick dotted orange";
}
}
}
}