public ActionResult <IEnumerable <StateDTO> > Get(int countryId) { var countriesBusiness = new CountriesBDC(); var result = new ActionResult <IEnumerable <StateDTO> >(countriesBusiness.Get(countryId)); return(result); }
public ActionResult <IEnumerable <CountryDTO> > Get() { var countriesBusiness = new CountriesBDC(); var result = new ActionResult <IEnumerable <CountryDTO> >(countriesBusiness.Get()); return(result); }