public async Task <IEnumerable <EthinicalGroup> > GetEthnical(string id) { Advertisiment ads = await _Advertisement.GetById(id); IEnumerable <EthinicalGroup> groups = ads.EthinicalGroups; return(groups); }
public async Task <ActionResult> Details(string id) { if (!string.IsNullOrEmpty(id)) { var Service = await _Advertisiment.GetById(id); return(View(Service)); } else { return(BadRequest()); } }