public async Task <ActionResult <IEnumerable <StateProvinceResource> > > GetAllMusicsByArtistID(int id) { var country = await _countryService.GetCountryById(id); if (country == null) { return(NotFound()); } var statesProvinces = await _stateProvinceService.GetStatesProvincesByCountrytId(id); var staProResource = _mapper.Map <IEnumerable <StateProvince>, IEnumerable <StateProvinceResource> >(statesProvinces); return(Ok(staProResource)); }