Пример #1
0
        //********** END SOILE **********



        // GET: ParkedVehicles/Create
        public IActionResult Create()
        {
            ViewData["MemberID"]      = new SelectList(_context.Set <Member>(), "Id", "FullName");
            ViewData["VehicleTypeID"] = new SelectList(_context.Set <VehicleTypes>(), "ID", "VehicleType");
            return(View());
        }
Пример #2
0
 // GET: Vehicles/Create
 public IActionResult Park()
 {
     ViewData["MembersId"]      = new SelectList(_context.Set <Members>(), "Id", "FullName");
     ViewData["VehicleTypesId"] = new SelectList(_context.Set <VehicleTypes>(), "Id", "TypeOfVehicle");
     return(View());
 }