Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static PostResponseModel _GetAllUserState(AdminPostInparamModel value)
 {
     try
     {
         using (ServiceInstance server = FrameCorex.GetService())
         {
             server.UserLogin(value.LID, value.PWD, Enums.Permission.Administor);
             FrameCorex.ServiceInstanceInfo(server).DisposeInfo = false;
             var result = new PostResponseModel();
             result.ExtResult.Add("Current users", Dealdct(FrameCorex.CurrentUsers(server)));
             result.ExtResult.Add("Interrupt users", Dealdct(FrameCorex.InterruptUsers(server)));
             return(result);
         }
     }
     catch (Exceptions.FPException ex)
     {
         return(new PostResponseModel()
         {
             Message = ex.Message,
             Result = Enums.APIResult.Error
         });
     }
 }