public ActionResult Edit(RoleDto dto) { OpRoleUpdate op = new OpRoleUpdate(); op.Role = dto; var result = _manager.ExecuteOperation(op); return(RedirectToAction("Index")); }
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")); //} }
public ActionResult Edit(RoleDto role) { try { OpRoleUpdate update = new OpRoleUpdate(); update.Role = role; OperationResult result = _manager.executeOperation(update); return(RedirectToAction("Index")); } catch { return(View()); } }