예제 #1
0
        public IHttpActionResult GetCitiesByCuntryID(int i_CountryID)
        {
            LogControllerEntring("getcities");
            IHttpActionResult result = Ok();

            try
            {
                result = Ok(m_Logic.GetCities(i_CountryID));
            }
            catch (Exception ex)
            {
                result = LogException(ex, null);
            }

            return(result);
        }
예제 #2
0
 // GET: api/City
 public List <CityDto> Get()
 {
     return(CityLogic.GetCities());
 }
 // GET: api/City
 public IEnumerable <CityModelDC> Get()
 {
     return(cityMethods.GetCities());
 }