Пример #1
0
        public ActionResult Details(int id)
        {
            H_Race h_race = raceService.Get(id);

            h_race.Details = raceService.GetAll(h_race.Id).ToList();
            return(View(h_race));
        }
Пример #2
0
        public IEnumerable <H_Details> GetAll(int id)
        {
            H_Race h_race = Mapper <B_Race, H_Race> .Map(raceService.Get(id));

            return(h_race.Details = (raceService.GetAll(h_race.Id).ToList()).ToHelper());
        }