public string GetCountry(string token, int id, Culture culture = Culture.En) { if (!CheckToken(token)) { return(null); } return(ToJson(SCountry.Convert(HttpContext, DataManager.Countries.GetCountry(id), culture))); }
public string GetCountries(string token, int offset = 0, int count = 20, string search = null, Culture culture = Culture.En, Order order = Order.Default) { if (!CheckToken(token)) { return(null); } return(ToJson(SCountry.Convert(HttpContext, DataManager.Countries.GetCountries(offset, count, culture, search, order), culture))); }