Exemplo n.º 1
0
 public int CreateOrUpdateState(string ticket, TransitState state)
 {
     return(WebServiceImpl <TransitState, ManagedState, State> .CreateOrUpdate(
                ticket, state));
 }
Exemplo n.º 2
0
 public int GetCountriesCount(string ticket)
 {
     return(WebServiceImpl <TransitCountry, ManagedCountry, Country> .GetCount(
                ticket));
 }
Exemplo n.º 3
0
 public List <TransitBugSeverity> GetBugSeverities(string ticket, ServiceQueryOptions options)
 {
     return(WebServiceImpl <TransitBugSeverity, ManagedBugSeverity, BugSeverity> .GetList(
                ticket, options));
 }
Exemplo n.º 4
0
 public List <TransitCountry> GetCountries(string ticket, ServiceQueryOptions options)
 {
     Order[] orders = { Order.Asc("Name") };
     return(WebServiceImpl <TransitCountry, ManagedCountry, Country> .GetList(
                ticket, options, null, orders));
 }
Exemplo n.º 5
0
 public void DeleteNeighborhood(string ticket, int id)
 {
     WebServiceImpl <TransitNeighborhood, ManagedNeighborhood, Neighborhood> .Delete(
         ticket, id);
 }
Exemplo n.º 6
0
 public int CreateOrUpdateNeighborhood(string ticket, TransitNeighborhood neighborhood)
 {
     return(WebServiceImpl <TransitNeighborhood, ManagedNeighborhood, Neighborhood> .CreateOrUpdate(
                ticket, neighborhood));
 }
Exemplo n.º 7
0
 public List <TransitNeighborhood> GetNeighborhoods(string ticket, ServiceQueryOptions options)
 {
     Order[] orders = { Order.Asc("Name") };
     return(WebServiceImpl <TransitNeighborhood, ManagedNeighborhood, Neighborhood> .GetList(
                ticket, options, null, orders));
 }
Exemplo n.º 8
0
 public int GetStatesByCountryNameCount(string ticket, string name)
 {
     return(WebServiceImpl <TransitState, ManagedState, State> .GetCount(
                ticket, string.Format("WHERE State.Country.Name = '{0}'",
                                      Renderer.SqlEncode(name))));
 }
Exemplo n.º 9
0
 public void DeleteState(string ticket, int id)
 {
     WebServiceImpl <TransitState, ManagedState, State> .Delete(
         ticket, id);
 }
Exemplo n.º 10
0
 public int GetStatesByCountryIdCount(string ticket, int id)
 {
     ICriterion[] expressions = { Expression.Eq("Country.Id", id) };
     return(WebServiceImpl <TransitState, ManagedState, State> .GetCount(
                ticket, expressions));
 }
Exemplo n.º 11
0
 public List <TransitState> GetStatesByCountryName(string ticket, string name, ServiceQueryOptions options)
 {
     return(WebServiceImpl <TransitState, ManagedState, State> .GetList(
                ticket, options, string.Format("SELECT State FROM State State WHERE State.Country.Name = '{0}' ORDER BY State.Name ASC",
                                               Renderer.SqlEncode(name))));
 }
Exemplo n.º 12
0
 public int GetStatesCount(string ticket)
 {
     return(WebServiceImpl <TransitState, ManagedState, State> .GetCount(
                ticket));
 }
Exemplo n.º 13
0
 public List <TransitState> GetStates(string ticket, ServiceQueryOptions options)
 {
     Order[] orders = { Order.Asc("Name") };
     return(WebServiceImpl <TransitState, ManagedState, State> .GetList(
                ticket, options, null, orders));
 }
Exemplo n.º 14
0
 public TransitState GetStateById(string ticket, int id)
 {
     return(WebServiceImpl <TransitState, ManagedState, State> .GetById(
                ticket, id));
 }
Exemplo n.º 15
0
 public TransitCountry GetCountryById(string ticket, int id)
 {
     return(WebServiceImpl <TransitCountry, ManagedCountry, Country> .GetById(
                ticket, id));
 }
Exemplo n.º 16
0
 public int CreateOrUpdateCity(string ticket, TransitCity city)
 {
     return(WebServiceImpl <TransitCity, ManagedCity, City> .CreateOrUpdate(
                ticket, city));
 }
Exemplo n.º 17
0
 public TransitCity GetCityByTag(string ticket, string tag)
 {
     return(WebServiceImpl <TransitCity, ManagedCity, City> .GetByCriterion(
                ticket, Expression.Eq("Tag", tag)));
 }
Exemplo n.º 18
0
 public TransitCity GetCityById(string ticket, int id)
 {
     return(WebServiceImpl <TransitCity, ManagedCity, City> .GetById(
                ticket, id));
 }
Exemplo n.º 19
0
 public TransitNeighborhood GetNeighborhoodById(string ticket, int id)
 {
     return(WebServiceImpl <TransitNeighborhood, ManagedNeighborhood, Neighborhood> .GetById(
                ticket, id));
 }
Exemplo n.º 20
0
 public List <TransitAccountCity> GetAccountCities(string ticket, ServiceQueryOptions options)
 {
     return(WebServiceImpl <TransitAccountCity, ManagedAccountCity, AccountCity> .GetListFromNamedQuery(
                ticket, options, "GetAccountCities"));
 }
Exemplo n.º 21
0
 public int GetNeighborhoodsCount(string ticket)
 {
     return(WebServiceImpl <TransitNeighborhood, ManagedNeighborhood, Neighborhood> .GetCount(
                ticket));
 }
Exemplo n.º 22
0
 public int CreateOrUpdateCountry(string ticket, TransitCountry country)
 {
     return(WebServiceImpl <TransitCountry, ManagedCountry, Country> .CreateOrUpdate(
                ticket, country));
 }
Exemplo n.º 23
0
 public int GetNeighborhoodsByCityIdCount(string ticket, int id)
 {
     ICriterion[] expressions = { Expression.Eq("City.Id", id) };
     return(WebServiceImpl <TransitNeighborhood, ManagedNeighborhood, Neighborhood> .GetCount(
                ticket, expressions));
 }
Exemplo n.º 24
0
 public int GetCitiesByStateIdCount(string ticket, int id)
 {
     ICriterion[] expressions = { Expression.Eq("State.Id", id) };
     return(WebServiceImpl <TransitCity, ManagedCity, City> .GetCount(
                ticket, expressions));
 }
Exemplo n.º 25
0
 public List <TransitNeighborhood> SearchNeighborhoodsByName(string ticket, string name, ServiceQueryOptions options)
 {
     ICriterion[] expressions = { Expression.Like("Name", string.Format("%{0}%", name)) };
     return(WebServiceImpl <TransitNeighborhood, ManagedNeighborhood, Neighborhood> .GetList(
                ticket, options, expressions, null));
 }
Exemplo n.º 26
0
 public void DeleteCity(string ticket, int id)
 {
     WebServiceImpl <TransitCity, ManagedCity, City> .Delete(
         ticket, id);
 }
Exemplo n.º 27
0
 public TransitBugSeverity GetBugSeverityById(string ticket, int id)
 {
     return(WebServiceImpl <TransitBugSeverity, ManagedBugSeverity, BugSeverity> .GetById(
                ticket, id));
 }
Exemplo n.º 28
0
 public List <TransitCity> SearchCitiesByName(string ticket, string name, ServiceQueryOptions options)
 {
     ICriterion[] expressions = { Expression.Like("Name", string.Format("%{0}%", name)) };
     return(WebServiceImpl <TransitCity, ManagedCity, City> .GetList(
                ticket, options, expressions, null));
 }
Exemplo n.º 29
0
 public int GetBugSeveritiesCount(string ticket)
 {
     return(WebServiceImpl <TransitBugSeverity, ManagedBugSeverity, BugSeverity> .GetCount(
                ticket));
 }
Exemplo n.º 30
0
 public void DeleteCountry(string ticket, int id)
 {
     WebServiceImpl <TransitCountry, ManagedCountry, Country> .Delete(
         ticket, id);
 }