This commit is contained in:
2020-06-11 23:11:12 +00:00
parent 63b843fb54
commit f34b3907c7
2 changed files with 23 additions and 11 deletions

View File

@@ -148,8 +148,8 @@ namespace AyaNova.Api.Controllers
/// </summary>
/// <param name="requestData"></param>
/// <returns>HTTP 204 No Content result code on success or fail code with explanation</returns>
[HttpPost("trialrequest")]
public async Task<IActionResult> RequestTrial([FromBody] dtoRequestTrial requestData)
[HttpPost("trialRequest")]
public async Task<IActionResult> RequestTrial([FromBody] RequestTrial trialRequest)
{
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
@@ -175,7 +175,7 @@ namespace AyaNova.Api.Controllers
}
//Send the request to RockFish here (or at least start the job to do it in which case return Accepted instead of no content and update comment above)
var ret = await Core.License.RequestTrialAsync(requestData.EmailAddress, requestData.RegisteredTo, log);
var ret = await Core.License.RequestTrialAsync(trialRequest, log);
//Log
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.License, AyaEvent.LicenseTrialRequest), ct);