コード例 #1
0
 public string Save(City aCity)
 {
     if (nCityGateway.GetCountryCityNameIsExist(aCity.CityName))
     {
         return("<strong>Warning!</strong> City: '" + aCity.CityName + "' already exist.");
     }
     else
     {
         if (nCityGateway.CitySave(aCity) > 0)
         {
             return("<strong>Success!</strong> Save Successfully");
         }
         return("<strong>Error!</strong> Save Failed");
     }
 }