Пример #1
0
        public ActionResult Modify(int seq, string txtSearch, int hidPageSize)
        {
            ViewBag.SearchOption = new SearchOptionView {
                TxtSearch = txtSearch, PageSize = hidPageSize
            };

            BoardT boardT = GetDetail(seq, 0);

            return(View(boardT));
        }
Пример #2
0
        private BoardT GetDetail(int seq, int option)
        {
            BoardDispatch boardDispatch = new BoardDispatch();
            DataSet       data          = boardDispatch.GetBoardDetail(seq);

            BoardT boardT = new BoardT
            {
                Comment   = option == 1 ? data.Tables[0].Rows[0]["Comment"].ToString().Replace("\n", "<br/>") : data.Tables[0].Rows[0]["Comment"].ToString(),
                LabelName = data.Tables[0].Rows[0]["LabelName"].ToString(),
                RegDate   = (DateTime)data.Tables[0].Rows[0]["RegDate"],
                Seq       = (int)data.Tables[0].Rows[0]["Seq"],
                Subject   = data.Tables[0].Rows[0]["Subject"].ToString()
            };

            return(boardT);
        }