예제 #1
0
 // GET: City
 public ActionResult Index()
 {
     return(View(cityTypeService.GetMany(r => r.IsDeleted == false).ToList()));
 }
예제 #2
0
 // GET: City/Create
 public ActionResult Create()
 {
     ViewBag.CityTypeID = new SelectList(cityTypeService.GetMany(e => e.IsActive == true && e.IsDeleted == false), "ID", "Name");
     return(View());
 }