Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Interface

IArtifactManager

Syntax

_artifactManagerArtifactManager.Create<T>(T artifact, ArtifactType artifactType, string documentVersion, int serviceRequestId, int userId)

...

HTTP 200 OK if successful, 401 if unauthorized, 400 otherwise.

Example

Code Block
languagec#
using MTOA.BLL.Interfaces;

string MyDocumentVersionmyDocumentVersion = "MySrv_1.0.0";
int serviceRequestId = 12345;

var signature = new DTO.ESignature
{
    UserId = CurrentUser.Id.ToString(),
    FirstName = CurrentUser.FirstName,
    LastName = CurrentUser.LastName,
    SignatureDateTime = DateTime.Now,
    IpAddress = WebRequestExtension.GetUserIPAddress(),
    HostName = WebRequestExtension.GetHostName(),
    BrowserDetails = WebRequestExtension.GetBrowserDetails()
};

await _artifactManager.Create( signature, ArtifactType.SignedJsonDocument, MyDocumentVersionmyDocumentVersion, serviceRequestId, CurrentUser.Id);

...