コード例 #1
0
 public ActionResult Index()
 {
     var input = new LookupDemoInput
                     {
                         Team = new Team {ThePerson = 13},
                         Person = 8,
                         CountryId = 7,
                         Hobbies = hobbyRepo.GetAll().Take(3).Select(o => o.Id).ToList(),
                         People = personRepo.GetAll().Skip(7).Take(2).Select(o => o.Id).ToList(),
                     };
     var h = hobbyRepo.GetAll().FirstOrDefault();
     if(h!= null) input.HobbyGuid = h.IdGuid;
     return View(input);
 }
コード例 #2
0
 public ActionResult Index(LookupDemoInput input, int[] countryId)
 {
     return View(input);
 }