Beispiel #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);
         }
     }
 }
Beispiel #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);
         }
     }
 }
Beispiel #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);
         }
     }
 }
Beispiel #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);
         }
     }
 }
Beispiel #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);
         }
     }
 }