public ActionResult Add() { //TODO: make ViewBag for drop down list var types = _contactTypeLogic.GetContactTypes(); ViewBag.Types = new SelectList(types, "ContactTypeId", "ContactTypeName", 1); return(View()); }
public ActionResult Index() { var contactTypes = _contactTypeLogic.GetContactTypes(); return(View(contactTypes)); }