コード例 #1
0
        // GET: Home
        public ActionResult Index()
        {
            var list = BookInfoBLL.Find(new BookInfo_View());

            FindSele();
            return(View(list));
        }
コード例 #2
0
        // Open Edit
        public ActionResult EditPage(int id)
        {
            var bk = BookInfoBLL.Find(new BookInfo_View()
            {
                BkId = id
            })[0];

            FindSele(bk);
            return(View(bk));
        }
コード例 #3
0
        public ActionResult FindPostData(FormCollection fc)
        {
            BookInfo_View bkFilter = new BookInfo_View();

            bkFilter.BkName = fc["BookName"].ToString();
            if (fc["seleList"].ToString() != "")
            {
                bkFilter.TypeId = Convert.ToInt32(fc["seleList"]);
            }
            var list = BookInfoBLL.Find(bkFilter);

            FindSele();
            return(View("Index", list));
        }