public ActionResult Add() { var model = new Category { isTrash = false, categoryId = 0, languageId = 1 }; ViewBag.Chuyenmuc = "active"; ViewBag.languageId = _toolAdmin.LanguageSelectList(); ViewBag.parentId = _toolAdmin.CategorySelectList(null, null, model.languageId); return(View(model)); }
public ActionResult Add(int?parentId) { var model = new Menu { parentId = parentId, isTrash = false }; ViewBag.Menu = "active"; ViewBag.languageId = _toolAdmin.LanguageSelectList(); return(View(model)); }
public ActionResult Add() { var model = new Video { isTrash = false, createTime = DateTime.Now, updateTime = DateTime.Now }; ViewBag.languageId = _toolAdmin.LanguageSelectList(); ViewBag.Quanlyvideo = "active"; return(View(model)); }
public ActionResult Add() { var model = new Post { createBy = User.Identity.Name, createTime = DateTime.Now, updateTime = DateTime.Now, isTrash = false, postView = 0, languageId = 1 }; ViewBag.categoryId = _toolAdmin.CategorySelectList(null, null, model.languageId); ViewBag.languageId = _toolAdmin.LanguageSelectList(); ViewBag.Quanlybaiviet = "active"; return(View(model)); }
public ActionResult Add() { var model = new Document { isTrash = false, createTime = DateTime.Now, updateTime = DateTime.Now, issuedTime = DateTime.Now.Date, languageId = 1 }; ViewBag.documentTypeId = _toolAdmin.DocumentTypeSelectList(); ViewBag.categoryId = _toolAdmin.DocumentTypeDropdown(model.categoryId); ViewBag.languageId = _toolAdmin.LanguageSelectList(); ViewBag.Quanlyvanban = "active"; return(View(model)); }