Example #1
0
        public ActionResult Edit(int pId = 0)
        {
            SupportPage mSupportPage = new SupportPage();
            var         mSupport     = SupportService.LayTheoId(pId);

            if (mSupport != null)
            {
                var mSupportType = SupportService.LaySupportTypeAll();
                mSupportPage.HtmlNhom = V308HTMLHELPER.TaoDanhSachSupportType3(mSupportType, (int)mSupport.TypeID);
                mSupportPage.pSupport = mSupport;
            }
            else
            {
                mSupportPage.Html = "Không tìm thấy tin tức cần sửa.";
            }
            return(View("Edit", mSupportPage));
        }