Beispiel #1
0
 public void ModifyRole(Leadtools.Medical.WebViewer.ExternalControl.Role role)
 {
     ValidateToken();
     try
     {
         var args = new { authenticationCookie = AuthenticationToken, role = role };
         PostJson(ServiceUrl + "/UpdateRolePermissions", args);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
        public void CreateRole(string roleName)
        {
            ValidateToken();
            try
            {
                Leadtools.Medical.WebViewer.ExternalControl.Role role = new Leadtools.Medical.WebViewer.ExternalControl.Role()
                {
                    Name = roleName
                };

                var args = new { authenticationCookie = AuthenticationToken, role = role };
                PostJson(ServiceUrl + "/CreateRole", args);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }