示例#1
0
        // GET: /routes/Create
        public ActionResult Create()
        {
            var items = _sinkNodeService.GetQueryable(x => x.Id != null);

            ViewBag.sinknodes = new SelectList(items.ToList(), "Id", "Name");
            return(View());
        }
        // GET: /sinknodes/
        public async Task <ActionResult> Index()
        {
            var list = _sinknodeService.GetQueryable(x => x.Id != null);

            return(View(list));
        }