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