コード例 #1
0
 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));
         }
     }
コード例 #2
0
 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));
         }
     }