コード例 #1
0
ファイル: ReaderController.cs プロジェクト: hungit0408/thu
        public AjaxResult GetBorrowingBookReader(Guid BookReaderID)
        {
            BaseBL <BorrowingBookReader> _baseBL;
            var _result = new AjaxResult();
            Dictionary <string, object> dict = new Dictionary <string, object>();

            try
            {
                dict["BookReaderID"] = BookReaderID;
                _baseBL = new BaseBL <BorrowingBookReader>();
                IEnumerable <BorrowingBookReader> listBorrowingBookReaders;
                listBorrowingBookReaders = _baseBL.BLGetDataBySpecificParameters("[dbo].[Proc_Get_BorrowingBookReader]", dict);

                _result.Data    = listBorrowingBookReaders;
                _result.Message = "Geting Data is Successful";
                _result.Success = true;
            }
            catch (Exception ex)
            {
                _result.Success = false;
                _result.Message = "Geting Data fail";
            }
            return(_result);
        }