public string GetTempreture(string zipCode) { var tempService = new TempretureService(); var city = tempService.GetCityByZip(zipCode); var state = tempService.GetStateByCity(city); var temp = tempService.GetTempretureByCity(city); return string.Format("curren ttempreture is {0} in {1} , {2}",temp,city,state); }
public string GetTempreture(string zipCode) { var tempService = new TempretureService(); var city = tempService.GetCityByZip(zipCode); var state = tempService.GetStateByCity(city); var temp = tempService.GetTempretureByCity(city); return(string.Format("curren ttempreture is {0} in {1} , {2}", temp, city, state)); }
public Facade() { tempService = new TempretureService(); }