/// <summary> /// this method calls a method which hits the api and returns response string /// </summary> /// <param name="location"></param> /// <param name="count"></param> /// <param name="token"></param> /// <returns></returns> public CompanyDetailsModelBL GetCompanyByLocation(String location, int count, string token) { DataFromAPI obj = new DataFromAPI(); var response = obj.RequestToApi(location, count, token); return(XmlParsing(response)); }
/// <summary> /// To get company by location /// </summary> /// <param name="location"></param> /// <param name="count"></param> /// <param name="token"></param> /// <returns></returns> public string GetCompanyByLocation(String location, int count, string token) { DataFromAPI obj = new DataFromAPI(); var response = obj.RequestToApi(location, count, token); return(response); }