Beispiel #1
0
        public ActionResult Create()
        {
            ViewBag.AddressId  = new SelectList(addressRepo.GetItems(), "Id", "AddressString");
            ViewBag.CustomerId = new SelectList(customerRepo.GetItems(), "Id", "Name");

            return(View());
        }
Beispiel #2
0
        // GET: Address
        public ActionResult Index()
        {
            var model = repository.GetItems();

            return(View(model));
        }