Ejemplo n.º 1
0
        public ActionResult Edit(RoleDto dto)
        {
            OpRoleUpdate op = new OpRoleUpdate();

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

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 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"));

            //}
        }
Ejemplo n.º 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());
            }
        }