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

            return(View());
        }
Exemplo n.º 2
0
        // GET: Customer
        public ActionResult Index()
        {
            var model = customerRepo.GetItems();

            return(View(model));
        }