public ActionResult Get() { if (IdentityAccessService.IsUserAuthorized(HttpContext, out Guid organizationOut, out Guid identityOut, out long roleOut)) { var result = telemetryService.GetAllTelemetry(organizationOut); if (result == null) { return(NotFound()); } else { return(Ok(result)); } }
public ActionResult Get(Guid digitalTwin) { if (IdentityAccessService.IsUserAuthorized(HttpContext, out Guid organizationOut, out Guid identityOut, out long roleOut)) { var result = digitalThreadEventService.GetAllDigitalThreadEvents(digitalTwin, organizationOut); if (result == null) { return(NotFound()); } else { return(Ok(result)); } }
public IHttpActionResult Get(long digitalTwinModel) { if (IdentityAccessService.IsUserAuthorized(Request, out long organizationOut, out long identityOut, out long roleOut)) { var result = dynamicPropertyService.GetAllDigitalTwinModelDynamicProperties(digitalTwinModel, organizationOut); if (result == null) { return(NotFound()); } else { return(Ok(result)); } }
public IHttpActionResult Get() { if (IdentityAccessService.IsUserAuthorized(Request, out long organizationOut, out long identityOut, out long roleOut)) { var result = dataTypeService.GetAllDataTypes(); if (result == null) { return(NotFound()); } else { return(Ok(result)); } }
public IHttpActionResult Delete(long id) { if (IdentityAccessService.IsUserAuthorized(Request, out long organizationOut, out long identityOut, out long roleOut)) { switch (roleOut) { case 1: var result1 = organizationService.DeleteOrganization(organizationOut); if (result1 == null) { return(NotFound()); } else { return(Ok(result1)); } default: return(Unauthorized()); } }