// GET: Admin/Role public ActionResult Index() { Operation op = new OpRoleBase(); var result = _manager.ExecuteOperation(op); return(View(result.Items as RoleDto[])); }
private RoleDto getInstance(string id) { OpRoleBase op = new OpRoleBase(); op.Criteria.Uuid = id; var result = _manager.ExecuteOperation(op); RoleDto dto = result.Items[0] as RoleDto; return(dto); }
public ActionResult Edit(string uuid) { OpRoleBase editView = new OpRoleBase(); editView.criteria.Uuid = uuid; OperationResult rez = _manager.executeOperation(editView); RoleDto dto = rez.Items[0] as RoleDto; return(View(dto)); }
public ActionResult Details(string uuid) { OpRoleBase op = new OpRoleBase(); op.criteria.Uuid = uuid; var result = _manager.executeOperation(op); RoleDto dto = result.Items[0] as RoleDto; return(View(dto)); }