Esempio n. 1
0
        public ActionResult Edit(Guid id)
        {
            var info  = service.GetById(id);
            var model = new WorkNoticeModel().ToModel(info);

            ViewBag.Organization = TreeHtml.GetListOrganization();
            return(View(PluginHelper.GetViewPath(this.GetType(), "Edit"), model));
        }
Esempio n. 2
0
        public ActionResult Create()
        {
            var model = new WorkNoticeModel();
            var name  = Session["User"] as User;

            model.Publisher      = name.UserName;
            ViewBag.Organization = TreeHtml.GetListOrganization();
            return(View(PluginHelper.GetViewPath(this.GetType(), "Create"), model));
        }