예제 #1
0
        public async Task <IEnumerable <EthinicalGroup> > GetEthnical(string id)
        {
            Advertisiment ads = await _Advertisement.GetById(id);

            IEnumerable <EthinicalGroup> groups = ads.EthinicalGroups;

            return(groups);
        }
예제 #2
0
        public async Task <ActionResult> Details(string id)
        {
            if (!string.IsNullOrEmpty(id))
            {
                var Service = await _Advertisiment.GetById(id);

                return(View(Service));
            }
            else
            {
                return(BadRequest());
            }
        }