This commit is contained in:
2018-12-11 16:09:30 +00:00
parent 62ddd43501
commit 2ce1db72b1
6 changed files with 86 additions and 77 deletions

View File

@@ -47,9 +47,10 @@ namespace AyaNova.Api.Controllers
/// "Huge" - Used for automated testing and development, if you choose this it will take a very long time (15 minutes to overnight)
/// </summary>
/// <param name="size">Valid values are "Small", "Medium", "Large", "Huge"</param>
/// <param name="timeZoneOffset">Value in hours of local time zone offset from UTC / GMT. This ensures that data is generated relative to the desired time zone</param>
/// <returns></returns>
[HttpPost("seed/{size}")]
public ActionResult SeedTrialDatabase([FromRoute] string size)
public ActionResult SeedTrialDatabase([FromRoute] string size,[FromRoute] decimal timeZoneOffset )
{
if (!serverState.IsOpen)
{
@@ -90,7 +91,8 @@ namespace AyaNova.Api.Controllers
JObject o = JObject.FromObject(new
{
seedLevel = seedLevel
seedLevel = seedLevel,
timeZoneOffset=timeZoneOffset
});
OpsJob j = new OpsJob();