Beispiel #1
0
 public IHttpActionResult GetTypes()
 {
     return(Ok(repo.GetVehicleTypes()));
 }
Beispiel #2
0
 // GET: Vehicles/Create
 public ActionResult Create()
 {
     ViewBag.OwnerId = new SelectList(db.GetOwners(), "Id", "Name");
     ViewBag.TypeId  = new SelectList(db.GetVehicleTypes(), "Id", "Name");
     return(View());
 }