コード例 #1
0
        // GET: Admin/Friends
        public ActionResult Index()
        {
            ILinkDAC     dac = new LinkDAC();
            int          totalNoRecords, startIndex = 0;
            IList <Link> links = dac.Get(null, "SortOrder ASC", startIndex, Int32.MaxValue, out totalNoRecords);

            return(View(links));
        }
コード例 #2
0
        public ActionResult Edit(int id)
        {
            ILinkDAC dac   = new LinkDAC();
            var      link  = dac.Get(id);
            var      model = new LinkEdit {
                LinkID = link.LinkID, SortOrder = link.SortOrder, Note = link.Note, Title = link.Title, URL = link.URL
            };

            return(View(model));
        }