/// \brief This method fillFromToComboBox /// \details <b>Details</b> /// This method will fill the data into Combobox for City details /// \return string private void fillFromToComboBox() { CityBizDAO cityBiz = new CityBizDAO(); // Fill in the combo box cityBiz.GetCityNameList(boxFrom); cityBiz.GetCityNameList(boxTo); }
/// \brief This method Save for user /// \details <b>Details</b> /// This method will save city ID /// \return void public void Save() { bool flag = false; if (command == "UPDATE") { flag = new CityBizDAO().UpdateCity(this); } else if (command == "INSERT") { flag = new CityBizDAO().InsertCity(this); } }
/// \brief This method GetOrders for user /// \details <b>Details</b> /// This method will get order /// \return void public List <City> GetOrders(string pattern) { var cityList = new CityBizDAO().GetCities(pattern); return(cityList); }
/// \brief This method GetById for user /// \details <b>Details</b> /// This method will get city by ID /// \return void public City GetById(string cityID) { var cities = new CityBizDAO().GetCities(cityID); return(cities[0]); }
public List <City> GetCities(string cityID) { var cityList = new CityBizDAO().GetCities(cityID); return(cityList); }
public List <City> GetCityName(string pattern) { var cityList = new CityBizDAO().GetCityName(pattern); return(cityList); }