예제 #1
0
        public ActionResult Register(string reg, int vehicleTypeId, string name)
        {
            int ownId = repo.RegOwner(new Owner {
                Name = name
            });

            repo.Register(new Vehicle {
                OwnerId = ownId, Reg = reg, OwnerInfo = null, VehicleTypeId = vehicleTypeId
            });
            return(RedirectToAction("Park", new { reg = reg }));

            //return View();
        }