public Role GetRole(Guid roleId) { RoleWithPermissionsQuery query = new RoleWithPermissionsQuery(dbContext.Roles); RoleMapper roleMapper = new RoleMapper(); return(roleMapper.Map(query.Execute(roleId))); }
public Role GetRoleWithPermissions(Guid id) { RoleWithPermissionsQuery query = new RoleWithPermissionsQuery(dbContext.Roles); return(query.Execute(id)); }