Skip to content

Commit

Permalink
Add new scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
felickz committed Oct 31, 2024
1 parent 2915cf6 commit d761ecc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Controllers/WeatherForecastController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,36 @@ public class WeatherForecastController : ControllerBase
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};

public enum RecommendationEngineType

{
Account401kToIRA,
SDIRAInvestment,
}

public enum RegistrationEventType
{
AccountCreated = 1,
AccountCompleted = 2,
TrustedContactAdded = 3
}


private readonly ILogger<WeatherForecastController> _logger;

public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;

}

[HttpGet(Name = "GetWeatherForecast")]
public IEnumerable<WeatherForecast> Get()
{

_logger.LogInformation($"HandleAsync called for trusted contact added event: {RegistrationEventType.TrustedContactAdded}");


return Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
Expand All @@ -33,5 +53,15 @@ public IEnumerable<WeatherForecast> Get()
})
.ToArray();
}

//Add post that takes in an enum value type of weather forcast
[HttpPost("PostWeatherForecast/{type}/{assessmentId}")]
public IActionResult Post([FromRoute] RecommendationEngineType type, [FromRoute] int assessmentId )
{
_logger.LogInformation("Generating {engineType} recommendation for {assessmentId}.", type, assessmentId);

return Ok();
}

}
}

0 comments on commit d761ecc

Please sign in to comment.