Beispiel #1
0
 protected EndpointResult(T _data)
 {
     Code     = "200";
     Message  = "OK";
     Data     = _data;
     Metadata = new EndpointMetaData
     {
         Created  = DateTime.UtcNow.ToString("o"),
         Modified = DateTime.UtcNow.ToString("o"),
     };
 }
Beispiel #2
0
 protected EndpointResult(HttpStatusCode _statusCode, T _data)
 {
     Code     = Convert.ToString((int)_statusCode);
     Message  = _statusCode.ToString();
     Data     = _data;
     Metadata = new EndpointMetaData
     {
         Created  = DateTime.UtcNow.ToString("o"),
         Modified = DateTime.UtcNow.ToString("o"),
     };
 }