Ejemplo n.º 1
0
        /// <summary>
        /// 图书搜索
        /// </summary>
        /// <param name="bookName"></param>
        /// <returns></returns>
        public ActionResult Search(string bookName)
        {
            if (string.IsNullOrEmpty(bookName))
            {
                return(View("Index"));
            }

            int totalPage = 0;
            var dt        = _repository.GetBooksByBookName(bookName, 1, PageSize, out totalPage);

            return(View("Index", dt));
        }