예제 #1
0
        public ActionResult Edit(RoleDto dto)
        {
            OpRoleUpdate op = new OpRoleUpdate();

            op.Role = dto;
            var result = _manager.ExecuteOperation(op);

            return(RedirectToAction("Index"));
        }
예제 #2
0
        public ActionResult EditRole(RoleDto dto)
        {
            //if (ModelState.IsValid)
            //{
            OpRoleUpdate op = new OpRoleUpdate();

            op.RoleDto = dto;
            OperationResult result = OperationManager.Singleton.ExecuteOperation(op);

            TempData["Success"] = "Updated Successfully!";
            return(RedirectToAction("Index"));

            //}
        }
예제 #3
0
        public ActionResult Edit(RoleDto role)
        {
            try
            {
                OpRoleUpdate update = new OpRoleUpdate();
                update.Role = role;
                OperationResult result = _manager.executeOperation(update);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }