public async Task <IActionResult> Execute(KeysLastAuthorisationArgs args) { if (!_Validator.Valid(args.UploadAuthorisationToken)) //TODO check validation { return(new OkResult()); } await _AuthorisationWriter.Execute(args); _DbContextProvider.SaveAndCommit(); return(new OkResult()); }
public async Task Execute(KeysLastAuthorisationArgs args) { var e = _DbContextProvider .KeyReleaseWorkflowStates .SingleOrDefault(x => x.LabConfirmationId == args.LabConfirmationID); if (e == null) { return; } e.Authorised = true; _DbContextProvider.KeyReleaseWorkflowStates.Update(e); }