public ActionResult Create() { var mFilePage = new FilePage(); var mListFileType = FileService.LayNhomFileAll(); //Tao danh sach cac nhom tin mFilePage.HtmlNhom = V308HTMLHELPER.TaoDanhSachNhomFile4(mListFileType, 0); return(View("Create", mFilePage)); }
public ActionResult Edit(int pId = 0) { FilePage mFilePage = new FilePage(); var mFile = FileService.LayFileTheoId(pId); if (mFile != null) { var mFileTypeList = FileService.LayNhomFileAll(); //Tao danh sach cac nhom tin mFilePage.HtmlNhom = V308HTMLHELPER.TaoDanhSachNhomFile4(mFileTypeList, (int)mFile.TypeID); mFilePage.pFile = mFile; } else { mFilePage.Html = "Không tìm thấy File cần sửa."; } return(View("Edit", mFilePage)); }