コード例 #1
0
 public IActionResult Index()
 {
     return(View(_vehicleTypeRepository.GetAllEntities()));
 }
コード例 #2
0
 public IActionResult Create()
 {
     ViewBag.OwnerName       = new SelectList(_ownerRepository.GetAllEntities(), "Id", "OwnerPersonalId");
     ViewBag.VehicleTypeName = new SelectList(_vehicleTypeRepository.GetAllEntities(), "Name", "Name");
     return(View());
 }