コード例 #1
0
        public ActionResult Add()
        {
            //TODO: make ViewBag for drop down list
            var types = _contactTypeLogic.GetContactTypes();

            ViewBag.Types = new SelectList(types, "ContactTypeId", "ContactTypeName", 1);

            return(View());
        }
コード例 #2
0
        public ActionResult Index()
        {
            var contactTypes = _contactTypeLogic.GetContactTypes();

            return(View(contactTypes));
        }