public ActionResult Get() { if (IdentityAccessService.IsUserAuthorized(HttpContext, out Guid organizationOut, out Guid identityOut, out long roleOut)) { var result = groupService.GetAllGroups(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 = thingGroupService.GetAllGroups(organizationOut); if (result == null) { return(NotFound()); } else { return(Ok(result)); } }