コード例 #1
0
 public ActionResult NewProperty()
 {
     using (UnitOfWorkManager.NewUnitOfWork())
     {
         ListAllCountiesViewModel listAllCountyViewModel = new ListAllCountiesViewModel()
         {
             ListAllCounty = _countyService.ListOfCounties().ToList()
         };
         PropertyViewModel viewModel = new PropertyViewModel()
         {
             _listAllCountyViewModel = listAllCountyViewModel,
             _countyViewModel        = new CountyViewModel(),
         };
         return(View(viewModel));
     }
 }