示例#1
0
        public ActionResult Details(Guid id)
        {
            ProjectInfoState item = _iProjectInfoStateService.GetById(id);

            ViewBag.UserId = _iUserInfo.UserId;
            return(View(item));
        }
示例#2
0
        //
        // GET: /Platform/SysDepartment/Edit/5

        public ActionResult Edit(Guid?id)
        {
            var item = new ProjectInfoState();

            if (id.HasValue)
            {
                item = _iProjectInfoStateService.GetById(id.Value);
            }
            return(View(item));
        }
示例#3
0
        public ActionResult Edit(Guid?id, ProjectInfoState collection)
        {
            if (!ModelState.IsValid)
            {
                return(View(collection));
            }

            _iProjectInfoStateService.Save(id, collection);
            _unitOfWork.Commit();

            return(RedirectToAction("Index"));
        }