コード例 #1
0
 public IEnumerable <UsuarioSystemEntity> GetUsuarioSystemList()
 {
     if (WebOperationContext.Current.IncomingRequest.Method == "OPTIONS")
     {
         return(null);
     }
     else
     {
         try
         {
             return(UsuarioSystem.GetAll());
         }
         catch (Exception ex)
         {
             throw new WebFaultException <string>(ex.Message, HttpStatusCode.ExpectationFailed);
         }
     }
 }
コード例 #2
0
 public UsuarioSystemEntity GetDeepUsuarioSystem(int?IdUsuario)
 {
     if (WebOperationContext.Current.IncomingRequest.Method == "OPTIONS")
     {
         return(null);
     }
     else
     {
         try
         {
             return(UsuarioSystem.GetOneDeep(IdUsuario));
         }
         catch (Exception ex)
         {
             throw new WebFaultException <string>(ex.Message, HttpStatusCode.ExpectationFailed);
         }
     }
 }
コード例 #3
0
 public int?UpdateUsuarioSystem(UsuarioSystemEntity objUsuarioSystem)
 {
     if (WebOperationContext.Current.IncomingRequest.Method == "OPTIONS")
     {
         return(null);
     }
     else
     {
         try
         {
             return(UsuarioSystem.Edit(objUsuarioSystem));
         }
         catch (Exception ex)
         {
             throw new WebFaultException <string>(ex.Message, HttpStatusCode.ExpectationFailed);
         }
     }
 }
コード例 #4
0
 public int?DeleteUsuarioSystem(String BaseRemoteIp, int BaseIdUser, int?IdUsuario)
 {
     if (WebOperationContext.Current.IncomingRequest.Method == "OPTIONS")
     {
         return(null);
     }
     else
     {
         try
         {
             return(UsuarioSystem.Delete(IdUsuario));
         }
         catch (Exception ex)
         {
             throw new WebFaultException <string>(ex.Message, HttpStatusCode.ExpectationFailed);
         }
     }
 }
コード例 #5
0
 public SoftvList <UsuarioSystemEntity> GetUsuarioSystemPagedListXml(int page, int pageSize, String xml)
 {
     if (WebOperationContext.Current.IncomingRequest.Method == "OPTIONS")
     {
         return(null);
     }
     else
     {
         try
         {
             return(UsuarioSystem.GetPagedList(page, pageSize, xml));
         }
         catch (Exception ex)
         {
             throw new WebFaultException <string>(ex.Message, HttpStatusCode.ExpectationFailed);
         }
     }
 }